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=:
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
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}
1416
1417 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1418 Try \`$0 --help' for more information"
1419 ;;
1420
1421 *=*)
1422 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1423 # Reject names that are not valid shell variable names.
1424 case $ac_envvar in #(
1425 '' | [0-9]* | *[!_$as_cr_alnum]* )
1426 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1427 esac
1428 eval $ac_envvar=\$ac_optarg
1429 export $ac_envvar ;;
1430
1431 *)
1432 # FIXME: should be removed in autoconf 3.0.
1433 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1434 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1435 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1436 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1437 ;;
1438
1439 esac
1440 done
1441
1442 if test -n "$ac_prev"; then
1443 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1444 as_fn_error $? "missing argument to $ac_option"
1445 fi
1446
1447 if test -n "$ac_unrecognized_opts"; then
1448 case $enable_option_checking in
1449 no) ;;
1450 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1451 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1452 esac
1453 fi
1454
1455 # Check all directory arguments for consistency.
1456 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1841
1842 cd "$ac_dir" || { ac_status=$?; continue; }
1843 # Check for guested configure.
1844 if test -f "$ac_srcdir/configure.gnu"; then
1845 echo &&
1846 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1847 elif test -f "$ac_srcdir/configure"; then
1848 echo &&
1849 $SHELL "$ac_srcdir/configure" --help=recursive
1850 else
1851 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1852 fi || ac_status=$?
1853 cd "$ac_pwd" || { ac_status=$?; break; }
1854 done
1855 fi
1856
1857 test -n "$ac_init_help" && exit $ac_status
1858 if $ac_init_version; then
1859 cat <<\_ACEOF
1860 OpenJDK configure jdk8
1861 generated by GNU Autoconf 2.67
1862
1863 Copyright (C) 2010 Free Software Foundation, Inc.
1864 This configure script is free software; the Free Software Foundation
1865 gives unlimited permission to copy, distribute and modify it.
1866 _ACEOF
1867 exit
1868 fi
1869
1870 ## ------------------------ ##
1871 ## Autoconf initialization. ##
1872 ## ------------------------ ##
1873
1874 # ac_fn_c_try_compile LINENO
1875 # --------------------------
1876 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1877 ac_fn_c_try_compile ()
1878 {
1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880 rm -f conftest.$ac_objext
1881 if { { ac_try="$ac_compile"
1887 $as_echo "$ac_try_echo"; } >&5
1888 (eval "$ac_compile") 2>conftest.err
1889 ac_status=$?
1890 if test -s conftest.err; then
1891 grep -v '^ *+' conftest.err >conftest.er1
1892 cat conftest.er1 >&5
1893 mv -f conftest.er1 conftest.err
1894 fi
1895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1896 test $ac_status = 0; } && {
1897 test -z "$ac_c_werror_flag" ||
1898 test ! -s conftest.err
1899 } && test -s conftest.$ac_objext; then :
1900 ac_retval=0
1901 else
1902 $as_echo "$as_me: failed program was:" >&5
1903 sed 's/^/| /' conftest.$ac_ext >&5
1904
1905 ac_retval=1
1906 fi
1907 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1908 as_fn_set_status $ac_retval
1909
1910 } # ac_fn_c_try_compile
1911
1912 # ac_fn_cxx_try_compile LINENO
1913 # ----------------------------
1914 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1915 ac_fn_cxx_try_compile ()
1916 {
1917 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1918 rm -f conftest.$ac_objext
1919 if { { ac_try="$ac_compile"
1920 case "(($ac_try" in
1921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1922 *) ac_try_echo=$ac_try;;
1923 esac
1924 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1925 $as_echo "$ac_try_echo"; } >&5
1926 (eval "$ac_compile") 2>conftest.err
1927 ac_status=$?
1928 if test -s conftest.err; then
1929 grep -v '^ *+' conftest.err >conftest.er1
1930 cat conftest.er1 >&5
1931 mv -f conftest.er1 conftest.err
1932 fi
1933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1934 test $ac_status = 0; } && {
1935 test -z "$ac_cxx_werror_flag" ||
1936 test ! -s conftest.err
1937 } && test -s conftest.$ac_objext; then :
1938 ac_retval=0
1939 else
1940 $as_echo "$as_me: failed program was:" >&5
1941 sed 's/^/| /' conftest.$ac_ext >&5
1942
1943 ac_retval=1
1944 fi
1945 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1946 as_fn_set_status $ac_retval
1947
1948 } # ac_fn_cxx_try_compile
1949
1950 # ac_fn_objc_try_compile LINENO
1951 # -----------------------------
1952 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1953 ac_fn_objc_try_compile ()
1954 {
1955 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1956 rm -f conftest.$ac_objext
1957 if { { ac_try="$ac_compile"
1958 case "(($ac_try" in
1959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1960 *) ac_try_echo=$ac_try;;
1961 esac
1962 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1963 $as_echo "$ac_try_echo"; } >&5
1964 (eval "$ac_compile") 2>conftest.err
1965 ac_status=$?
1966 if test -s conftest.err; then
1967 grep -v '^ *+' conftest.err >conftest.er1
1968 cat conftest.er1 >&5
1969 mv -f conftest.er1 conftest.err
1970 fi
1971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1972 test $ac_status = 0; } && {
1973 test -z "$ac_objc_werror_flag" ||
1974 test ! -s conftest.err
1975 } && test -s conftest.$ac_objext; then :
1976 ac_retval=0
1977 else
1978 $as_echo "$as_me: failed program was:" >&5
1979 sed 's/^/| /' conftest.$ac_ext >&5
1980
1981 ac_retval=1
1982 fi
1983 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1984 as_fn_set_status $ac_retval
1985
1986 } # ac_fn_objc_try_compile
1987
1988 # ac_fn_c_try_cpp LINENO
1989 # ----------------------
1990 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1991 ac_fn_c_try_cpp ()
1992 {
1993 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994 if { { ac_try="$ac_cpp conftest.$ac_ext"
1995 case "(($ac_try" in
1996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1997 *) ac_try_echo=$ac_try;;
1998 esac
1999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2000 $as_echo "$ac_try_echo"; } >&5
2001 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2002 ac_status=$?
2003 if test -s conftest.err; then
2004 grep -v '^ *+' conftest.err >conftest.er1
2005 cat conftest.er1 >&5
2006 mv -f conftest.er1 conftest.err
2007 fi
2008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2009 test $ac_status = 0; } > conftest.i && {
2010 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2011 test ! -s conftest.err
2012 }; then :
2013 ac_retval=0
2014 else
2015 $as_echo "$as_me: failed program was:" >&5
2016 sed 's/^/| /' conftest.$ac_ext >&5
2017
2018 ac_retval=1
2019 fi
2020 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2021 as_fn_set_status $ac_retval
2022
2023 } # ac_fn_c_try_cpp
2024
2025 # ac_fn_cxx_try_cpp LINENO
2026 # ------------------------
2027 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2028 ac_fn_cxx_try_cpp ()
2029 {
2030 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031 if { { ac_try="$ac_cpp conftest.$ac_ext"
2032 case "(($ac_try" in
2033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2034 *) ac_try_echo=$ac_try;;
2035 esac
2036 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2037 $as_echo "$ac_try_echo"; } >&5
2038 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2039 ac_status=$?
2040 if test -s conftest.err; then
2041 grep -v '^ *+' conftest.err >conftest.er1
2042 cat conftest.er1 >&5
2043 mv -f conftest.er1 conftest.err
2044 fi
2045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2046 test $ac_status = 0; } > conftest.i && {
2047 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2048 test ! -s conftest.err
2049 }; then :
2050 ac_retval=0
2051 else
2052 $as_echo "$as_me: failed program was:" >&5
2053 sed 's/^/| /' conftest.$ac_ext >&5
2054
2055 ac_retval=1
2056 fi
2057 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2058 as_fn_set_status $ac_retval
2059
2060 } # ac_fn_cxx_try_cpp
2061
2062 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2063 # ---------------------------------------------------------
2064 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2065 # the include files in INCLUDES and setting the cache variable VAR
2066 # accordingly.
2067 ac_fn_cxx_check_header_mongrel ()
2068 {
2069 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2070 if eval "test \"\${$3+set}\"" = set; then :
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2072 $as_echo_n "checking for $2... " >&6; }
2073 if eval "test \"\${$3+set}\"" = set; then :
2074 $as_echo_n "(cached) " >&6
2075 fi
2076 eval ac_res=\$$3
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2078 $as_echo "$ac_res" >&6; }
2079 else
2080 # Is the header compilable?
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2082 $as_echo_n "checking $2 usability... " >&6; }
2083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084 /* end confdefs.h. */
2085 $4
2086 #include <$2>
2087 _ACEOF
2088 if ac_fn_cxx_try_compile "$LINENO"; then :
2089 ac_header_compiler=yes
2090 else
2091 ac_header_compiler=no
2092 fi
2093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2120 ;;
2121 no:yes:* )
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2123 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2125 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2127 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2129 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2131 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2132 ( $as_echo "## ----------------------------------------- ##
2133 ## Report this to build-dev@openjdk.java.net ##
2134 ## ----------------------------------------- ##"
2135 ) | sed "s/^/$as_me: WARNING: /" >&2
2136 ;;
2137 esac
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2139 $as_echo_n "checking for $2... " >&6; }
2140 if eval "test \"\${$3+set}\"" = set; then :
2141 $as_echo_n "(cached) " >&6
2142 else
2143 eval "$3=\$ac_header_compiler"
2144 fi
2145 eval ac_res=\$$3
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2147 $as_echo "$ac_res" >&6; }
2148 fi
2149 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2150
2151 } # ac_fn_cxx_check_header_mongrel
2152
2153 # ac_fn_cxx_try_run LINENO
2154 # ------------------------
2155 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2156 # that executables *can* be run.
2157 ac_fn_cxx_try_run ()
2158 {
2159 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2160 if { { ac_try="$ac_link"
2161 case "(($ac_try" in
2162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2163 *) ac_try_echo=$ac_try;;
2164 esac
2165 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2166 $as_echo "$ac_try_echo"; } >&5
2167 (eval "$ac_link") 2>&5
2168 ac_status=$?
2169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2170 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2171 { { case "(($ac_try" in
2172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2173 *) ac_try_echo=$ac_try;;
2174 esac
2175 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2176 $as_echo "$ac_try_echo"; } >&5
2177 (eval "$ac_try") 2>&5
2178 ac_status=$?
2179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2180 test $ac_status = 0; }; }; then :
2181 ac_retval=0
2182 else
2183 $as_echo "$as_me: program exited with status $ac_status" >&5
2184 $as_echo "$as_me: failed program was:" >&5
2185 sed 's/^/| /' conftest.$ac_ext >&5
2186
2187 ac_retval=$ac_status
2188 fi
2189 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2190 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2191 as_fn_set_status $ac_retval
2192
2193 } # ac_fn_cxx_try_run
2194
2195 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2196 # ---------------------------------------------------------
2197 # Tests whether HEADER exists and can be compiled using the include files in
2198 # INCLUDES, setting the cache variable VAR accordingly.
2199 ac_fn_cxx_check_header_compile ()
2200 {
2201 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2203 $as_echo_n "checking for $2... " >&6; }
2204 if eval "test \"\${$3+set}\"" = set; then :
2205 $as_echo_n "(cached) " >&6
2206 else
2207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208 /* end confdefs.h. */
2209 $4
2210 #include <$2>
2211 _ACEOF
2212 if ac_fn_cxx_try_compile "$LINENO"; then :
2213 eval "$3=yes"
2214 else
2215 eval "$3=no"
2216 fi
2217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2218 fi
2219 eval ac_res=\$$3
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2221 $as_echo "$ac_res" >&6; }
2222 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2223
2224 } # ac_fn_cxx_check_header_compile
2225
2226 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2227 # ----------------------------------------------
2228 # Tries to find the compile-time value of EXPR in a program that includes
2229 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2230 # computed
2231 ac_fn_cxx_compute_int ()
2232 {
2233 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2234 if test "$cross_compiling" = yes; then
2235 # Depending upon the size, compute the lo and hi bounds.
2236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2237 /* end confdefs.h. */
2238 $4
2239 int
2240 main ()
2241 {
2242 static int test_array [1 - 2 * !(($2) >= 0)];
2379 fprintf (f, "%lu", i);
2380 }
2381 /* Do not output a trailing newline, as this causes \r\n confusion
2382 on some platforms. */
2383 return ferror (f) || fclose (f) != 0;
2384
2385 ;
2386 return 0;
2387 }
2388 _ACEOF
2389 if ac_fn_cxx_try_run "$LINENO"; then :
2390 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2391 else
2392 ac_retval=1
2393 fi
2394 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2395 conftest.$ac_objext conftest.beam conftest.$ac_ext
2396 rm -f conftest.val
2397
2398 fi
2399 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2400 as_fn_set_status $ac_retval
2401
2402 } # ac_fn_cxx_compute_int
2403
2404 # ac_fn_cxx_try_link LINENO
2405 # -------------------------
2406 # Try to link conftest.$ac_ext, and return whether this succeeded.
2407 ac_fn_cxx_try_link ()
2408 {
2409 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2410 rm -f conftest.$ac_objext conftest$ac_exeext
2411 if { { ac_try="$ac_link"
2412 case "(($ac_try" in
2413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2414 *) ac_try_echo=$ac_try;;
2415 esac
2416 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2417 $as_echo "$ac_try_echo"; } >&5
2418 (eval "$ac_link") 2>conftest.err
2419 ac_status=$?
2425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2426 test $ac_status = 0; } && {
2427 test -z "$ac_cxx_werror_flag" ||
2428 test ! -s conftest.err
2429 } && test -s conftest$ac_exeext && {
2430 test "$cross_compiling" = yes ||
2431 $as_test_x conftest$ac_exeext
2432 }; then :
2433 ac_retval=0
2434 else
2435 $as_echo "$as_me: failed program was:" >&5
2436 sed 's/^/| /' conftest.$ac_ext >&5
2437
2438 ac_retval=1
2439 fi
2440 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2441 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2442 # interfere with the next link command; also delete a directory that is
2443 # left behind by Apple's compiler. We do this before executing the actions.
2444 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2445 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2446 as_fn_set_status $ac_retval
2447
2448 } # ac_fn_cxx_try_link
2449
2450 # ac_fn_cxx_check_func LINENO FUNC VAR
2451 # ------------------------------------
2452 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2453 ac_fn_cxx_check_func ()
2454 {
2455 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2457 $as_echo_n "checking for $2... " >&6; }
2458 if eval "test \"\${$3+set}\"" = set; then :
2459 $as_echo_n "(cached) " >&6
2460 else
2461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2462 /* end confdefs.h. */
2463 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2464 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2465 #define $2 innocuous_$2
2466
2467 /* System header to define __stub macros and hopefully few prototypes,
2468 which can conflict with char $2 (); below.
2469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2470 <limits.h> exists even on freestanding compilers. */
2471
2472 #ifdef __STDC__
2473 # include <limits.h>
2474 #else
2475 # include <assert.h>
2476 #endif
2477
2478 #undef $2
2493
2494 int
2495 main ()
2496 {
2497 return $2 ();
2498 ;
2499 return 0;
2500 }
2501 _ACEOF
2502 if ac_fn_cxx_try_link "$LINENO"; then :
2503 eval "$3=yes"
2504 else
2505 eval "$3=no"
2506 fi
2507 rm -f core conftest.err conftest.$ac_objext \
2508 conftest$ac_exeext conftest.$ac_ext
2509 fi
2510 eval ac_res=\$$3
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2512 $as_echo "$ac_res" >&6; }
2513 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2514
2515 } # ac_fn_cxx_check_func
2516
2517 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2518 # -------------------------------------------------------
2519 # Tests whether HEADER exists and can be compiled using the include files in
2520 # INCLUDES, setting the cache variable VAR accordingly.
2521 ac_fn_c_check_header_compile ()
2522 {
2523 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2525 $as_echo_n "checking for $2... " >&6; }
2526 if eval "test \"\${$3+set}\"" = set; then :
2527 $as_echo_n "(cached) " >&6
2528 else
2529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2530 /* end confdefs.h. */
2531 $4
2532 #include <$2>
2533 _ACEOF
2534 if ac_fn_c_try_compile "$LINENO"; then :
2535 eval "$3=yes"
2536 else
2537 eval "$3=no"
2538 fi
2539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2540 fi
2541 eval ac_res=\$$3
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2543 $as_echo "$ac_res" >&6; }
2544 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2545
2546 } # ac_fn_c_check_header_compile
2547 cat >config.log <<_ACEOF
2548 This file contains any messages produced by compilers while
2549 running configure, to aid debugging if configure makes a mistake.
2550
2551 It was created by OpenJDK $as_me jdk8, which was
2552 generated by GNU Autoconf 2.67. Invocation command line was
2553
2554 $ $0 $@
2555
2556 _ACEOF
2557 exec 5>>config.log
2558 {
2559 cat <<_ASUNAME
2560 ## --------- ##
2561 ## Platform. ##
2562 ## --------- ##
2563
2564 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2565 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2566 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2567 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2568 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2569
2570 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2571 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2572
2790 *) ac_site_file1=./$CONFIG_SITE;;
2791 esac
2792 elif test "x$prefix" != xNONE; then
2793 ac_site_file1=$prefix/share/config.site
2794 ac_site_file2=$prefix/etc/config.site
2795 else
2796 ac_site_file1=$ac_default_prefix/share/config.site
2797 ac_site_file2=$ac_default_prefix/etc/config.site
2798 fi
2799 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2800 do
2801 test "x$ac_site_file" = xNONE && continue
2802 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2804 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2805 sed 's/^/| /' "$ac_site_file" >&5
2806 . "$ac_site_file" \
2807 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2808 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2809 as_fn_error $? "failed to load site script $ac_site_file
2810 See \`config.log' for more details" "$LINENO" 5 ; }
2811 fi
2812 done
2813
2814 if test -r "$cache_file"; then
2815 # Some versions of bash will fail to source /dev/null (special files
2816 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2817 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2819 $as_echo "$as_me: loading cache $cache_file" >&6;}
2820 case $cache_file in
2821 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2822 *) . "./$cache_file";;
2823 esac
2824 fi
2825 else
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2827 $as_echo "$as_me: creating cache $cache_file" >&6;}
2828 >$cache_file
2829 fi
2830
3680
3681
3682
3683
3684
3685 # Check if the VS env variables were setup prior to running configure.
3686 # If not, then find vcvarsall.bat and run it automatically, and integrate
3687 # the set env variables into the spec file.
3688
3689
3690
3691
3692
3693
3694 # This line needs to be here, verbatim, after all includes and the dummy hook
3695 # definitions. It is replaced with custom functionality when building
3696 # custom sources.
3697 #CUSTOM_AUTOCONF_INCLUDE
3698
3699 # Do not change or remove the following line, it is needed for consistency checks:
3700 DATE_WHEN_GENERATED=1358165331
3701
3702 ###############################################################################
3703 #
3704 # Initialization / Boot-strapping
3705 #
3706 # The bootstrapping process needs to solve the "chicken or the egg" problem,
3707 # thus it jumps back and forth, each time gaining something needed later on.
3708 #
3709 ###############################################################################
3710
3711 # Basic initialization that must happen first of all
3712
3713 # Save the original command line. This is passed to us by the wrapper configure script.
3714
3715 DATE_WHEN_CONFIGURED=`LANG=C date`
3716
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
3718 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
3720 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
3721
3722
3723
3724 # Start with tools that do not need have cross compilation support
3725 # and can be expected to be found in the default PATH. These tools are
3726 # used by configure. Nor are these tools expected to be found in the
3727 # devkit from the builddeps server either, since they are
3728 # needed to download the devkit.
3729
3730 # First are all the simple required tools.
3731
3732 for ac_prog in basename
3733 do
3734 # Extract the first word of "$ac_prog", so it can be a program name with args.
3735 set dummy $ac_prog; ac_word=$2
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3737 $as_echo_n "checking for $ac_word... " >&6; }
3738 if test "${ac_cv_path_BASENAME+set}" = set; then :
3739 $as_echo_n "(cached) " >&6
3740 else
3741 case $BASENAME in
3742 [\\/]* | ?:[\\/]*)
3743 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
3744 ;;
3745 *)
3746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3747 for as_dir in $PATH
3748 do
3749 IFS=$as_save_IFS
3750 test -z "$as_dir" && as_dir=.
3751 for ac_exec_ext in '' $ac_executable_extensions; do
3752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3753 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
3754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3755 break 2
3756 fi
3757 done
3758 done
3777
3778 if test "x$BASENAME" = x; then
3779 if test "xbasename" = x; then
3780 PROG_NAME=basename
3781 else
3782 PROG_NAME=basename
3783 fi
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
3785 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
3786 as_fn_error $? "Cannot continue" "$LINENO" 5
3787 fi
3788
3789
3790
3791 for ac_prog in bash
3792 do
3793 # Extract the first word of "$ac_prog", so it can be a program name with args.
3794 set dummy $ac_prog; ac_word=$2
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3796 $as_echo_n "checking for $ac_word... " >&6; }
3797 if test "${ac_cv_path_BASH+set}" = set; then :
3798 $as_echo_n "(cached) " >&6
3799 else
3800 case $BASH in
3801 [\\/]* | ?:[\\/]*)
3802 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
3803 ;;
3804 *)
3805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806 for as_dir in $PATH
3807 do
3808 IFS=$as_save_IFS
3809 test -z "$as_dir" && as_dir=.
3810 for ac_exec_ext in '' $ac_executable_extensions; do
3811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3812 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
3813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3814 break 2
3815 fi
3816 done
3817 done
3836
3837 if test "x$BASH" = x; then
3838 if test "xbash" = x; then
3839 PROG_NAME=bash
3840 else
3841 PROG_NAME=bash
3842 fi
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
3844 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
3845 as_fn_error $? "Cannot continue" "$LINENO" 5
3846 fi
3847
3848
3849
3850 for ac_prog in cat
3851 do
3852 # Extract the first word of "$ac_prog", so it can be a program name with args.
3853 set dummy $ac_prog; ac_word=$2
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3855 $as_echo_n "checking for $ac_word... " >&6; }
3856 if test "${ac_cv_path_CAT+set}" = set; then :
3857 $as_echo_n "(cached) " >&6
3858 else
3859 case $CAT in
3860 [\\/]* | ?:[\\/]*)
3861 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
3862 ;;
3863 *)
3864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3865 for as_dir in $PATH
3866 do
3867 IFS=$as_save_IFS
3868 test -z "$as_dir" && as_dir=.
3869 for ac_exec_ext in '' $ac_executable_extensions; do
3870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3871 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
3872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3873 break 2
3874 fi
3875 done
3876 done
3895
3896 if test "x$CAT" = x; then
3897 if test "xcat" = x; then
3898 PROG_NAME=cat
3899 else
3900 PROG_NAME=cat
3901 fi
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
3903 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
3904 as_fn_error $? "Cannot continue" "$LINENO" 5
3905 fi
3906
3907
3908
3909 for ac_prog in chmod
3910 do
3911 # Extract the first word of "$ac_prog", so it can be a program name with args.
3912 set dummy $ac_prog; ac_word=$2
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3914 $as_echo_n "checking for $ac_word... " >&6; }
3915 if test "${ac_cv_path_CHMOD+set}" = set; then :
3916 $as_echo_n "(cached) " >&6
3917 else
3918 case $CHMOD in
3919 [\\/]* | ?:[\\/]*)
3920 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
3921 ;;
3922 *)
3923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924 for as_dir in $PATH
3925 do
3926 IFS=$as_save_IFS
3927 test -z "$as_dir" && as_dir=.
3928 for ac_exec_ext in '' $ac_executable_extensions; do
3929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3930 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
3931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3932 break 2
3933 fi
3934 done
3935 done
3954
3955 if test "x$CHMOD" = x; then
3956 if test "xchmod" = x; then
3957 PROG_NAME=chmod
3958 else
3959 PROG_NAME=chmod
3960 fi
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
3962 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
3963 as_fn_error $? "Cannot continue" "$LINENO" 5
3964 fi
3965
3966
3967
3968 for ac_prog in cmp
3969 do
3970 # Extract the first word of "$ac_prog", so it can be a program name with args.
3971 set dummy $ac_prog; ac_word=$2
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3973 $as_echo_n "checking for $ac_word... " >&6; }
3974 if test "${ac_cv_path_CMP+set}" = set; then :
3975 $as_echo_n "(cached) " >&6
3976 else
3977 case $CMP in
3978 [\\/]* | ?:[\\/]*)
3979 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3980 ;;
3981 *)
3982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3983 for as_dir in $PATH
3984 do
3985 IFS=$as_save_IFS
3986 test -z "$as_dir" && as_dir=.
3987 for ac_exec_ext in '' $ac_executable_extensions; do
3988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3989 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3991 break 2
3992 fi
3993 done
3994 done
4013
4014 if test "x$CMP" = x; then
4015 if test "xcmp" = x; then
4016 PROG_NAME=cmp
4017 else
4018 PROG_NAME=cmp
4019 fi
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4021 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4022 as_fn_error $? "Cannot continue" "$LINENO" 5
4023 fi
4024
4025
4026
4027 for ac_prog in comm
4028 do
4029 # Extract the first word of "$ac_prog", so it can be a program name with args.
4030 set dummy $ac_prog; ac_word=$2
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4032 $as_echo_n "checking for $ac_word... " >&6; }
4033 if test "${ac_cv_path_COMM+set}" = set; then :
4034 $as_echo_n "(cached) " >&6
4035 else
4036 case $COMM in
4037 [\\/]* | ?:[\\/]*)
4038 ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
4039 ;;
4040 *)
4041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4042 for as_dir in $PATH
4043 do
4044 IFS=$as_save_IFS
4045 test -z "$as_dir" && as_dir=.
4046 for ac_exec_ext in '' $ac_executable_extensions; do
4047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4048 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
4049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4050 break 2
4051 fi
4052 done
4053 done
4072
4073 if test "x$COMM" = x; then
4074 if test "xcomm" = x; then
4075 PROG_NAME=comm
4076 else
4077 PROG_NAME=comm
4078 fi
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4080 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4081 as_fn_error $? "Cannot continue" "$LINENO" 5
4082 fi
4083
4084
4085
4086 for ac_prog in cp
4087 do
4088 # Extract the first word of "$ac_prog", so it can be a program name with args.
4089 set dummy $ac_prog; ac_word=$2
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4091 $as_echo_n "checking for $ac_word... " >&6; }
4092 if test "${ac_cv_path_CP+set}" = set; then :
4093 $as_echo_n "(cached) " >&6
4094 else
4095 case $CP in
4096 [\\/]* | ?:[\\/]*)
4097 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4098 ;;
4099 *)
4100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4101 for as_dir in $PATH
4102 do
4103 IFS=$as_save_IFS
4104 test -z "$as_dir" && as_dir=.
4105 for ac_exec_ext in '' $ac_executable_extensions; do
4106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4107 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4109 break 2
4110 fi
4111 done
4112 done
4131
4132 if test "x$CP" = x; then
4133 if test "xcp" = x; then
4134 PROG_NAME=cp
4135 else
4136 PROG_NAME=cp
4137 fi
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4139 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4140 as_fn_error $? "Cannot continue" "$LINENO" 5
4141 fi
4142
4143
4144
4145 for ac_prog in cpio
4146 do
4147 # Extract the first word of "$ac_prog", so it can be a program name with args.
4148 set dummy $ac_prog; ac_word=$2
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4150 $as_echo_n "checking for $ac_word... " >&6; }
4151 if test "${ac_cv_path_CPIO+set}" = set; then :
4152 $as_echo_n "(cached) " >&6
4153 else
4154 case $CPIO in
4155 [\\/]* | ?:[\\/]*)
4156 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
4157 ;;
4158 *)
4159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4160 for as_dir in $PATH
4161 do
4162 IFS=$as_save_IFS
4163 test -z "$as_dir" && as_dir=.
4164 for ac_exec_ext in '' $ac_executable_extensions; do
4165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4166 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
4167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4168 break 2
4169 fi
4170 done
4171 done
4190
4191 if test "x$CPIO" = x; then
4192 if test "xcpio" = x; then
4193 PROG_NAME=cpio
4194 else
4195 PROG_NAME=cpio
4196 fi
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4198 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4199 as_fn_error $? "Cannot continue" "$LINENO" 5
4200 fi
4201
4202
4203
4204 for ac_prog in cut
4205 do
4206 # Extract the first word of "$ac_prog", so it can be a program name with args.
4207 set dummy $ac_prog; ac_word=$2
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4209 $as_echo_n "checking for $ac_word... " >&6; }
4210 if test "${ac_cv_path_CUT+set}" = set; then :
4211 $as_echo_n "(cached) " >&6
4212 else
4213 case $CUT in
4214 [\\/]* | ?:[\\/]*)
4215 ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
4216 ;;
4217 *)
4218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4219 for as_dir in $PATH
4220 do
4221 IFS=$as_save_IFS
4222 test -z "$as_dir" && as_dir=.
4223 for ac_exec_ext in '' $ac_executable_extensions; do
4224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4225 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
4226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4227 break 2
4228 fi
4229 done
4230 done
4249
4250 if test "x$CUT" = x; then
4251 if test "xcut" = x; then
4252 PROG_NAME=cut
4253 else
4254 PROG_NAME=cut
4255 fi
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4257 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4258 as_fn_error $? "Cannot continue" "$LINENO" 5
4259 fi
4260
4261
4262
4263 for ac_prog in date
4264 do
4265 # Extract the first word of "$ac_prog", so it can be a program name with args.
4266 set dummy $ac_prog; ac_word=$2
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4268 $as_echo_n "checking for $ac_word... " >&6; }
4269 if test "${ac_cv_path_DATE+set}" = set; then :
4270 $as_echo_n "(cached) " >&6
4271 else
4272 case $DATE in
4273 [\\/]* | ?:[\\/]*)
4274 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4275 ;;
4276 *)
4277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4278 for as_dir in $PATH
4279 do
4280 IFS=$as_save_IFS
4281 test -z "$as_dir" && as_dir=.
4282 for ac_exec_ext in '' $ac_executable_extensions; do
4283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4284 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4286 break 2
4287 fi
4288 done
4289 done
4308
4309 if test "x$DATE" = x; then
4310 if test "xdate" = x; then
4311 PROG_NAME=date
4312 else
4313 PROG_NAME=date
4314 fi
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4316 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4317 as_fn_error $? "Cannot continue" "$LINENO" 5
4318 fi
4319
4320
4321
4322 for ac_prog in gdiff diff
4323 do
4324 # Extract the first word of "$ac_prog", so it can be a program name with args.
4325 set dummy $ac_prog; ac_word=$2
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4327 $as_echo_n "checking for $ac_word... " >&6; }
4328 if test "${ac_cv_path_DIFF+set}" = set; then :
4329 $as_echo_n "(cached) " >&6
4330 else
4331 case $DIFF in
4332 [\\/]* | ?:[\\/]*)
4333 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
4334 ;;
4335 *)
4336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4337 for as_dir in $PATH
4338 do
4339 IFS=$as_save_IFS
4340 test -z "$as_dir" && as_dir=.
4341 for ac_exec_ext in '' $ac_executable_extensions; do
4342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4343 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
4344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4345 break 2
4346 fi
4347 done
4348 done
4367
4368 if test "x$DIFF" = x; then
4369 if test "xgdiff diff" = x; then
4370 PROG_NAME=diff
4371 else
4372 PROG_NAME=gdiff diff
4373 fi
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4375 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4376 as_fn_error $? "Cannot continue" "$LINENO" 5
4377 fi
4378
4379
4380
4381 for ac_prog in dirname
4382 do
4383 # Extract the first word of "$ac_prog", so it can be a program name with args.
4384 set dummy $ac_prog; ac_word=$2
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4386 $as_echo_n "checking for $ac_word... " >&6; }
4387 if test "${ac_cv_path_DIRNAME+set}" = set; then :
4388 $as_echo_n "(cached) " >&6
4389 else
4390 case $DIRNAME in
4391 [\\/]* | ?:[\\/]*)
4392 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
4393 ;;
4394 *)
4395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396 for as_dir in $PATH
4397 do
4398 IFS=$as_save_IFS
4399 test -z "$as_dir" && as_dir=.
4400 for ac_exec_ext in '' $ac_executable_extensions; do
4401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4402 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
4403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4404 break 2
4405 fi
4406 done
4407 done
4426
4427 if test "x$DIRNAME" = x; then
4428 if test "xdirname" = x; then
4429 PROG_NAME=dirname
4430 else
4431 PROG_NAME=dirname
4432 fi
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4434 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4435 as_fn_error $? "Cannot continue" "$LINENO" 5
4436 fi
4437
4438
4439
4440 for ac_prog in echo
4441 do
4442 # Extract the first word of "$ac_prog", so it can be a program name with args.
4443 set dummy $ac_prog; ac_word=$2
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4445 $as_echo_n "checking for $ac_word... " >&6; }
4446 if test "${ac_cv_path_ECHO+set}" = set; then :
4447 $as_echo_n "(cached) " >&6
4448 else
4449 case $ECHO in
4450 [\\/]* | ?:[\\/]*)
4451 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4452 ;;
4453 *)
4454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4455 for as_dir in $PATH
4456 do
4457 IFS=$as_save_IFS
4458 test -z "$as_dir" && as_dir=.
4459 for ac_exec_ext in '' $ac_executable_extensions; do
4460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4461 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4463 break 2
4464 fi
4465 done
4466 done
4485
4486 if test "x$ECHO" = x; then
4487 if test "xecho" = x; then
4488 PROG_NAME=echo
4489 else
4490 PROG_NAME=echo
4491 fi
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4493 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4494 as_fn_error $? "Cannot continue" "$LINENO" 5
4495 fi
4496
4497
4498
4499 for ac_prog in expr
4500 do
4501 # Extract the first word of "$ac_prog", so it can be a program name with args.
4502 set dummy $ac_prog; ac_word=$2
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4504 $as_echo_n "checking for $ac_word... " >&6; }
4505 if test "${ac_cv_path_EXPR+set}" = set; then :
4506 $as_echo_n "(cached) " >&6
4507 else
4508 case $EXPR in
4509 [\\/]* | ?:[\\/]*)
4510 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
4511 ;;
4512 *)
4513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4514 for as_dir in $PATH
4515 do
4516 IFS=$as_save_IFS
4517 test -z "$as_dir" && as_dir=.
4518 for ac_exec_ext in '' $ac_executable_extensions; do
4519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4520 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
4521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4522 break 2
4523 fi
4524 done
4525 done
4544
4545 if test "x$EXPR" = x; then
4546 if test "xexpr" = x; then
4547 PROG_NAME=expr
4548 else
4549 PROG_NAME=expr
4550 fi
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4552 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4553 as_fn_error $? "Cannot continue" "$LINENO" 5
4554 fi
4555
4556
4557
4558 for ac_prog in file
4559 do
4560 # Extract the first word of "$ac_prog", so it can be a program name with args.
4561 set dummy $ac_prog; ac_word=$2
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4563 $as_echo_n "checking for $ac_word... " >&6; }
4564 if test "${ac_cv_path_FILE+set}" = set; then :
4565 $as_echo_n "(cached) " >&6
4566 else
4567 case $FILE in
4568 [\\/]* | ?:[\\/]*)
4569 ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
4570 ;;
4571 *)
4572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4573 for as_dir in $PATH
4574 do
4575 IFS=$as_save_IFS
4576 test -z "$as_dir" && as_dir=.
4577 for ac_exec_ext in '' $ac_executable_extensions; do
4578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4579 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
4580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4581 break 2
4582 fi
4583 done
4584 done
4603
4604 if test "x$FILE" = x; then
4605 if test "xfile" = x; then
4606 PROG_NAME=file
4607 else
4608 PROG_NAME=file
4609 fi
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4611 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4612 as_fn_error $? "Cannot continue" "$LINENO" 5
4613 fi
4614
4615
4616
4617 for ac_prog in find
4618 do
4619 # Extract the first word of "$ac_prog", so it can be a program name with args.
4620 set dummy $ac_prog; ac_word=$2
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4622 $as_echo_n "checking for $ac_word... " >&6; }
4623 if test "${ac_cv_path_FIND+set}" = set; then :
4624 $as_echo_n "(cached) " >&6
4625 else
4626 case $FIND in
4627 [\\/]* | ?:[\\/]*)
4628 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4629 ;;
4630 *)
4631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4632 for as_dir in $PATH
4633 do
4634 IFS=$as_save_IFS
4635 test -z "$as_dir" && as_dir=.
4636 for ac_exec_ext in '' $ac_executable_extensions; do
4637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4638 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4640 break 2
4641 fi
4642 done
4643 done
4662
4663 if test "x$FIND" = x; then
4664 if test "xfind" = x; then
4665 PROG_NAME=find
4666 else
4667 PROG_NAME=find
4668 fi
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4670 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4671 as_fn_error $? "Cannot continue" "$LINENO" 5
4672 fi
4673
4674
4675
4676 for ac_prog in head
4677 do
4678 # Extract the first word of "$ac_prog", so it can be a program name with args.
4679 set dummy $ac_prog; ac_word=$2
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4681 $as_echo_n "checking for $ac_word... " >&6; }
4682 if test "${ac_cv_path_HEAD+set}" = set; then :
4683 $as_echo_n "(cached) " >&6
4684 else
4685 case $HEAD in
4686 [\\/]* | ?:[\\/]*)
4687 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
4688 ;;
4689 *)
4690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4691 for as_dir in $PATH
4692 do
4693 IFS=$as_save_IFS
4694 test -z "$as_dir" && as_dir=.
4695 for ac_exec_ext in '' $ac_executable_extensions; do
4696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4697 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
4698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4699 break 2
4700 fi
4701 done
4702 done
4721
4722 if test "x$HEAD" = x; then
4723 if test "xhead" = x; then
4724 PROG_NAME=head
4725 else
4726 PROG_NAME=head
4727 fi
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4729 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4730 as_fn_error $? "Cannot continue" "$LINENO" 5
4731 fi
4732
4733
4734
4735 for ac_prog in ln
4736 do
4737 # Extract the first word of "$ac_prog", so it can be a program name with args.
4738 set dummy $ac_prog; ac_word=$2
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4740 $as_echo_n "checking for $ac_word... " >&6; }
4741 if test "${ac_cv_path_LN+set}" = set; then :
4742 $as_echo_n "(cached) " >&6
4743 else
4744 case $LN in
4745 [\\/]* | ?:[\\/]*)
4746 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4747 ;;
4748 *)
4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 for as_dir in $PATH
4751 do
4752 IFS=$as_save_IFS
4753 test -z "$as_dir" && as_dir=.
4754 for ac_exec_ext in '' $ac_executable_extensions; do
4755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4756 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4758 break 2
4759 fi
4760 done
4761 done
4780
4781 if test "x$LN" = x; then
4782 if test "xln" = x; then
4783 PROG_NAME=ln
4784 else
4785 PROG_NAME=ln
4786 fi
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4788 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4789 as_fn_error $? "Cannot continue" "$LINENO" 5
4790 fi
4791
4792
4793
4794 for ac_prog in ls
4795 do
4796 # Extract the first word of "$ac_prog", so it can be a program name with args.
4797 set dummy $ac_prog; ac_word=$2
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4799 $as_echo_n "checking for $ac_word... " >&6; }
4800 if test "${ac_cv_path_LS+set}" = set; then :
4801 $as_echo_n "(cached) " >&6
4802 else
4803 case $LS in
4804 [\\/]* | ?:[\\/]*)
4805 ac_cv_path_LS="$LS" # Let the user override the test with a path.
4806 ;;
4807 *)
4808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4809 for as_dir in $PATH
4810 do
4811 IFS=$as_save_IFS
4812 test -z "$as_dir" && as_dir=.
4813 for ac_exec_ext in '' $ac_executable_extensions; do
4814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4815 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
4816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4817 break 2
4818 fi
4819 done
4820 done
4839
4840 if test "x$LS" = x; then
4841 if test "xls" = x; then
4842 PROG_NAME=ls
4843 else
4844 PROG_NAME=ls
4845 fi
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4847 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4848 as_fn_error $? "Cannot continue" "$LINENO" 5
4849 fi
4850
4851
4852
4853 for ac_prog in mkdir
4854 do
4855 # Extract the first word of "$ac_prog", so it can be a program name with args.
4856 set dummy $ac_prog; ac_word=$2
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4858 $as_echo_n "checking for $ac_word... " >&6; }
4859 if test "${ac_cv_path_MKDIR+set}" = set; then :
4860 $as_echo_n "(cached) " >&6
4861 else
4862 case $MKDIR in
4863 [\\/]* | ?:[\\/]*)
4864 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4865 ;;
4866 *)
4867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868 for as_dir in $PATH
4869 do
4870 IFS=$as_save_IFS
4871 test -z "$as_dir" && as_dir=.
4872 for ac_exec_ext in '' $ac_executable_extensions; do
4873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4874 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4876 break 2
4877 fi
4878 done
4879 done
4898
4899 if test "x$MKDIR" = x; then
4900 if test "xmkdir" = x; then
4901 PROG_NAME=mkdir
4902 else
4903 PROG_NAME=mkdir
4904 fi
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4906 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4907 as_fn_error $? "Cannot continue" "$LINENO" 5
4908 fi
4909
4910
4911
4912 for ac_prog in mktemp
4913 do
4914 # Extract the first word of "$ac_prog", so it can be a program name with args.
4915 set dummy $ac_prog; ac_word=$2
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4917 $as_echo_n "checking for $ac_word... " >&6; }
4918 if test "${ac_cv_path_MKTEMP+set}" = set; then :
4919 $as_echo_n "(cached) " >&6
4920 else
4921 case $MKTEMP in
4922 [\\/]* | ?:[\\/]*)
4923 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
4924 ;;
4925 *)
4926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4927 for as_dir in $PATH
4928 do
4929 IFS=$as_save_IFS
4930 test -z "$as_dir" && as_dir=.
4931 for ac_exec_ext in '' $ac_executable_extensions; do
4932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4933 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
4934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4935 break 2
4936 fi
4937 done
4938 done
4957
4958 if test "x$MKTEMP" = x; then
4959 if test "xmktemp" = x; then
4960 PROG_NAME=mktemp
4961 else
4962 PROG_NAME=mktemp
4963 fi
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4965 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4966 as_fn_error $? "Cannot continue" "$LINENO" 5
4967 fi
4968
4969
4970
4971 for ac_prog in mv
4972 do
4973 # Extract the first word of "$ac_prog", so it can be a program name with args.
4974 set dummy $ac_prog; ac_word=$2
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4976 $as_echo_n "checking for $ac_word... " >&6; }
4977 if test "${ac_cv_path_MV+set}" = set; then :
4978 $as_echo_n "(cached) " >&6
4979 else
4980 case $MV in
4981 [\\/]* | ?:[\\/]*)
4982 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4983 ;;
4984 *)
4985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4986 for as_dir in $PATH
4987 do
4988 IFS=$as_save_IFS
4989 test -z "$as_dir" && as_dir=.
4990 for ac_exec_ext in '' $ac_executable_extensions; do
4991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4992 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4994 break 2
4995 fi
4996 done
4997 done
5016
5017 if test "x$MV" = x; then
5018 if test "xmv" = x; then
5019 PROG_NAME=mv
5020 else
5021 PROG_NAME=mv
5022 fi
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5024 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5025 as_fn_error $? "Cannot continue" "$LINENO" 5
5026 fi
5027
5028
5029
5030 for ac_prog in printf
5031 do
5032 # Extract the first word of "$ac_prog", so it can be a program name with args.
5033 set dummy $ac_prog; ac_word=$2
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5035 $as_echo_n "checking for $ac_word... " >&6; }
5036 if test "${ac_cv_path_PRINTF+set}" = set; then :
5037 $as_echo_n "(cached) " >&6
5038 else
5039 case $PRINTF in
5040 [\\/]* | ?:[\\/]*)
5041 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
5042 ;;
5043 *)
5044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5045 for as_dir in $PATH
5046 do
5047 IFS=$as_save_IFS
5048 test -z "$as_dir" && as_dir=.
5049 for ac_exec_ext in '' $ac_executable_extensions; do
5050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5051 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
5052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5053 break 2
5054 fi
5055 done
5056 done
5075
5076 if test "x$PRINTF" = x; then
5077 if test "xprintf" = x; then
5078 PROG_NAME=printf
5079 else
5080 PROG_NAME=printf
5081 fi
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5083 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5084 as_fn_error $? "Cannot continue" "$LINENO" 5
5085 fi
5086
5087
5088
5089 for ac_prog in pwd
5090 do
5091 # Extract the first word of "$ac_prog", so it can be a program name with args.
5092 set dummy $ac_prog; ac_word=$2
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5094 $as_echo_n "checking for $ac_word... " >&6; }
5095 if test "${ac_cv_path_THEPWDCMD+set}" = set; then :
5096 $as_echo_n "(cached) " >&6
5097 else
5098 case $THEPWDCMD in
5099 [\\/]* | ?:[\\/]*)
5100 ac_cv_path_THEPWDCMD="$THEPWDCMD" # Let the user override the test with a path.
5101 ;;
5102 *)
5103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104 for as_dir in $PATH
5105 do
5106 IFS=$as_save_IFS
5107 test -z "$as_dir" && as_dir=.
5108 for ac_exec_ext in '' $ac_executable_extensions; do
5109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5110 ac_cv_path_THEPWDCMD="$as_dir/$ac_word$ac_exec_ext"
5111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5112 break 2
5113 fi
5114 done
5115 done
5134
5135 if test "x$THEPWDCMD" = x; then
5136 if test "xpwd" = x; then
5137 PROG_NAME=thepwdcmd
5138 else
5139 PROG_NAME=pwd
5140 fi
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5142 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5143 as_fn_error $? "Cannot continue" "$LINENO" 5
5144 fi
5145
5146
5147
5148 for ac_prog in rm
5149 do
5150 # Extract the first word of "$ac_prog", so it can be a program name with args.
5151 set dummy $ac_prog; ac_word=$2
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5153 $as_echo_n "checking for $ac_word... " >&6; }
5154 if test "${ac_cv_path_RM+set}" = set; then :
5155 $as_echo_n "(cached) " >&6
5156 else
5157 case $RM in
5158 [\\/]* | ?:[\\/]*)
5159 ac_cv_path_RM="$RM" # Let the user override the test with a path.
5160 ;;
5161 *)
5162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5163 for as_dir in $PATH
5164 do
5165 IFS=$as_save_IFS
5166 test -z "$as_dir" && as_dir=.
5167 for ac_exec_ext in '' $ac_executable_extensions; do
5168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5169 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5171 break 2
5172 fi
5173 done
5174 done
5193
5194 if test "x$RM" = x; then
5195 if test "xrm" = x; then
5196 PROG_NAME=rm
5197 else
5198 PROG_NAME=rm
5199 fi
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5201 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5202 as_fn_error $? "Cannot continue" "$LINENO" 5
5203 fi
5204
5205
5206
5207 for ac_prog in sh
5208 do
5209 # Extract the first word of "$ac_prog", so it can be a program name with args.
5210 set dummy $ac_prog; ac_word=$2
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5212 $as_echo_n "checking for $ac_word... " >&6; }
5213 if test "${ac_cv_path_SH+set}" = set; then :
5214 $as_echo_n "(cached) " >&6
5215 else
5216 case $SH in
5217 [\\/]* | ?:[\\/]*)
5218 ac_cv_path_SH="$SH" # Let the user override the test with a path.
5219 ;;
5220 *)
5221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222 for as_dir in $PATH
5223 do
5224 IFS=$as_save_IFS
5225 test -z "$as_dir" && as_dir=.
5226 for ac_exec_ext in '' $ac_executable_extensions; do
5227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5228 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
5229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5230 break 2
5231 fi
5232 done
5233 done
5252
5253 if test "x$SH" = x; then
5254 if test "xsh" = x; then
5255 PROG_NAME=sh
5256 else
5257 PROG_NAME=sh
5258 fi
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5260 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5261 as_fn_error $? "Cannot continue" "$LINENO" 5
5262 fi
5263
5264
5265
5266 for ac_prog in sort
5267 do
5268 # Extract the first word of "$ac_prog", so it can be a program name with args.
5269 set dummy $ac_prog; ac_word=$2
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5271 $as_echo_n "checking for $ac_word... " >&6; }
5272 if test "${ac_cv_path_SORT+set}" = set; then :
5273 $as_echo_n "(cached) " >&6
5274 else
5275 case $SORT in
5276 [\\/]* | ?:[\\/]*)
5277 ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
5278 ;;
5279 *)
5280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5281 for as_dir in $PATH
5282 do
5283 IFS=$as_save_IFS
5284 test -z "$as_dir" && as_dir=.
5285 for ac_exec_ext in '' $ac_executable_extensions; do
5286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5287 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
5288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5289 break 2
5290 fi
5291 done
5292 done
5311
5312 if test "x$SORT" = x; then
5313 if test "xsort" = x; then
5314 PROG_NAME=sort
5315 else
5316 PROG_NAME=sort
5317 fi
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5319 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5320 as_fn_error $? "Cannot continue" "$LINENO" 5
5321 fi
5322
5323
5324
5325 for ac_prog in tail
5326 do
5327 # Extract the first word of "$ac_prog", so it can be a program name with args.
5328 set dummy $ac_prog; ac_word=$2
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5330 $as_echo_n "checking for $ac_word... " >&6; }
5331 if test "${ac_cv_path_TAIL+set}" = set; then :
5332 $as_echo_n "(cached) " >&6
5333 else
5334 case $TAIL in
5335 [\\/]* | ?:[\\/]*)
5336 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
5337 ;;
5338 *)
5339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5340 for as_dir in $PATH
5341 do
5342 IFS=$as_save_IFS
5343 test -z "$as_dir" && as_dir=.
5344 for ac_exec_ext in '' $ac_executable_extensions; do
5345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5346 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
5347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5348 break 2
5349 fi
5350 done
5351 done
5370
5371 if test "x$TAIL" = x; then
5372 if test "xtail" = x; then
5373 PROG_NAME=tail
5374 else
5375 PROG_NAME=tail
5376 fi
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5378 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5379 as_fn_error $? "Cannot continue" "$LINENO" 5
5380 fi
5381
5382
5383
5384 for ac_prog in tar
5385 do
5386 # Extract the first word of "$ac_prog", so it can be a program name with args.
5387 set dummy $ac_prog; ac_word=$2
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5389 $as_echo_n "checking for $ac_word... " >&6; }
5390 if test "${ac_cv_path_TAR+set}" = set; then :
5391 $as_echo_n "(cached) " >&6
5392 else
5393 case $TAR in
5394 [\\/]* | ?:[\\/]*)
5395 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5396 ;;
5397 *)
5398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5399 for as_dir in $PATH
5400 do
5401 IFS=$as_save_IFS
5402 test -z "$as_dir" && as_dir=.
5403 for ac_exec_ext in '' $ac_executable_extensions; do
5404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5405 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5407 break 2
5408 fi
5409 done
5410 done
5429
5430 if test "x$TAR" = x; then
5431 if test "xtar" = x; then
5432 PROG_NAME=tar
5433 else
5434 PROG_NAME=tar
5435 fi
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5437 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5438 as_fn_error $? "Cannot continue" "$LINENO" 5
5439 fi
5440
5441
5442
5443 for ac_prog in tee
5444 do
5445 # Extract the first word of "$ac_prog", so it can be a program name with args.
5446 set dummy $ac_prog; ac_word=$2
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5448 $as_echo_n "checking for $ac_word... " >&6; }
5449 if test "${ac_cv_path_TEE+set}" = set; then :
5450 $as_echo_n "(cached) " >&6
5451 else
5452 case $TEE in
5453 [\\/]* | ?:[\\/]*)
5454 ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
5455 ;;
5456 *)
5457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5458 for as_dir in $PATH
5459 do
5460 IFS=$as_save_IFS
5461 test -z "$as_dir" && as_dir=.
5462 for ac_exec_ext in '' $ac_executable_extensions; do
5463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
5465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5466 break 2
5467 fi
5468 done
5469 done
5488
5489 if test "x$TEE" = x; then
5490 if test "xtee" = x; then
5491 PROG_NAME=tee
5492 else
5493 PROG_NAME=tee
5494 fi
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5496 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5497 as_fn_error $? "Cannot continue" "$LINENO" 5
5498 fi
5499
5500
5501
5502 for ac_prog in touch
5503 do
5504 # Extract the first word of "$ac_prog", so it can be a program name with args.
5505 set dummy $ac_prog; ac_word=$2
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5507 $as_echo_n "checking for $ac_word... " >&6; }
5508 if test "${ac_cv_path_TOUCH+set}" = set; then :
5509 $as_echo_n "(cached) " >&6
5510 else
5511 case $TOUCH in
5512 [\\/]* | ?:[\\/]*)
5513 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
5514 ;;
5515 *)
5516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5517 for as_dir in $PATH
5518 do
5519 IFS=$as_save_IFS
5520 test -z "$as_dir" && as_dir=.
5521 for ac_exec_ext in '' $ac_executable_extensions; do
5522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5523 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
5524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5525 break 2
5526 fi
5527 done
5528 done
5547
5548 if test "x$TOUCH" = x; then
5549 if test "xtouch" = x; then
5550 PROG_NAME=touch
5551 else
5552 PROG_NAME=touch
5553 fi
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5555 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5556 as_fn_error $? "Cannot continue" "$LINENO" 5
5557 fi
5558
5559
5560
5561 for ac_prog in tr
5562 do
5563 # Extract the first word of "$ac_prog", so it can be a program name with args.
5564 set dummy $ac_prog; ac_word=$2
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5566 $as_echo_n "checking for $ac_word... " >&6; }
5567 if test "${ac_cv_path_TR+set}" = set; then :
5568 $as_echo_n "(cached) " >&6
5569 else
5570 case $TR in
5571 [\\/]* | ?:[\\/]*)
5572 ac_cv_path_TR="$TR" # Let the user override the test with a path.
5573 ;;
5574 *)
5575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5576 for as_dir in $PATH
5577 do
5578 IFS=$as_save_IFS
5579 test -z "$as_dir" && as_dir=.
5580 for ac_exec_ext in '' $ac_executable_extensions; do
5581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5582 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
5583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5584 break 2
5585 fi
5586 done
5587 done
5606
5607 if test "x$TR" = x; then
5608 if test "xtr" = x; then
5609 PROG_NAME=tr
5610 else
5611 PROG_NAME=tr
5612 fi
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5614 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5615 as_fn_error $? "Cannot continue" "$LINENO" 5
5616 fi
5617
5618
5619
5620 for ac_prog in uname
5621 do
5622 # Extract the first word of "$ac_prog", so it can be a program name with args.
5623 set dummy $ac_prog; ac_word=$2
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5625 $as_echo_n "checking for $ac_word... " >&6; }
5626 if test "${ac_cv_path_UNAME+set}" = set; then :
5627 $as_echo_n "(cached) " >&6
5628 else
5629 case $UNAME in
5630 [\\/]* | ?:[\\/]*)
5631 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
5632 ;;
5633 *)
5634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5635 for as_dir in $PATH
5636 do
5637 IFS=$as_save_IFS
5638 test -z "$as_dir" && as_dir=.
5639 for ac_exec_ext in '' $ac_executable_extensions; do
5640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5641 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
5642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5643 break 2
5644 fi
5645 done
5646 done
5665
5666 if test "x$UNAME" = x; then
5667 if test "xuname" = x; then
5668 PROG_NAME=uname
5669 else
5670 PROG_NAME=uname
5671 fi
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5673 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5674 as_fn_error $? "Cannot continue" "$LINENO" 5
5675 fi
5676
5677
5678
5679 for ac_prog in uniq
5680 do
5681 # Extract the first word of "$ac_prog", so it can be a program name with args.
5682 set dummy $ac_prog; ac_word=$2
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5684 $as_echo_n "checking for $ac_word... " >&6; }
5685 if test "${ac_cv_path_UNIQ+set}" = set; then :
5686 $as_echo_n "(cached) " >&6
5687 else
5688 case $UNIQ in
5689 [\\/]* | ?:[\\/]*)
5690 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
5691 ;;
5692 *)
5693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5694 for as_dir in $PATH
5695 do
5696 IFS=$as_save_IFS
5697 test -z "$as_dir" && as_dir=.
5698 for ac_exec_ext in '' $ac_executable_extensions; do
5699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5700 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
5701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5702 break 2
5703 fi
5704 done
5705 done
5724
5725 if test "x$UNIQ" = x; then
5726 if test "xuniq" = x; then
5727 PROG_NAME=uniq
5728 else
5729 PROG_NAME=uniq
5730 fi
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5732 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5733 as_fn_error $? "Cannot continue" "$LINENO" 5
5734 fi
5735
5736
5737
5738 for ac_prog in wc
5739 do
5740 # Extract the first word of "$ac_prog", so it can be a program name with args.
5741 set dummy $ac_prog; ac_word=$2
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5743 $as_echo_n "checking for $ac_word... " >&6; }
5744 if test "${ac_cv_path_WC+set}" = set; then :
5745 $as_echo_n "(cached) " >&6
5746 else
5747 case $WC in
5748 [\\/]* | ?:[\\/]*)
5749 ac_cv_path_WC="$WC" # Let the user override the test with a path.
5750 ;;
5751 *)
5752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5753 for as_dir in $PATH
5754 do
5755 IFS=$as_save_IFS
5756 test -z "$as_dir" && as_dir=.
5757 for ac_exec_ext in '' $ac_executable_extensions; do
5758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5759 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
5760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5761 break 2
5762 fi
5763 done
5764 done
5783
5784 if test "x$WC" = x; then
5785 if test "xwc" = x; then
5786 PROG_NAME=wc
5787 else
5788 PROG_NAME=wc
5789 fi
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5791 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5792 as_fn_error $? "Cannot continue" "$LINENO" 5
5793 fi
5794
5795
5796
5797 for ac_prog in which
5798 do
5799 # Extract the first word of "$ac_prog", so it can be a program name with args.
5800 set dummy $ac_prog; ac_word=$2
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5802 $as_echo_n "checking for $ac_word... " >&6; }
5803 if test "${ac_cv_path_WHICH+set}" = set; then :
5804 $as_echo_n "(cached) " >&6
5805 else
5806 case $WHICH in
5807 [\\/]* | ?:[\\/]*)
5808 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
5809 ;;
5810 *)
5811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5812 for as_dir in $PATH
5813 do
5814 IFS=$as_save_IFS
5815 test -z "$as_dir" && as_dir=.
5816 for ac_exec_ext in '' $ac_executable_extensions; do
5817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5818 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
5819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5820 break 2
5821 fi
5822 done
5823 done
5842
5843 if test "x$WHICH" = x; then
5844 if test "xwhich" = x; then
5845 PROG_NAME=which
5846 else
5847 PROG_NAME=which
5848 fi
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5850 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5851 as_fn_error $? "Cannot continue" "$LINENO" 5
5852 fi
5853
5854
5855
5856 for ac_prog in xargs
5857 do
5858 # Extract the first word of "$ac_prog", so it can be a program name with args.
5859 set dummy $ac_prog; ac_word=$2
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5861 $as_echo_n "checking for $ac_word... " >&6; }
5862 if test "${ac_cv_path_XARGS+set}" = set; then :
5863 $as_echo_n "(cached) " >&6
5864 else
5865 case $XARGS in
5866 [\\/]* | ?:[\\/]*)
5867 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
5868 ;;
5869 *)
5870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5871 for as_dir in $PATH
5872 do
5873 IFS=$as_save_IFS
5874 test -z "$as_dir" && as_dir=.
5875 for ac_exec_ext in '' $ac_executable_extensions; do
5876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5877 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
5878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5879 break 2
5880 fi
5881 done
5882 done
5902 if test "x$XARGS" = x; then
5903 if test "xxargs" = x; then
5904 PROG_NAME=xargs
5905 else
5906 PROG_NAME=xargs
5907 fi
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5909 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5910 as_fn_error $? "Cannot continue" "$LINENO" 5
5911 fi
5912
5913
5914
5915 # Then required tools that require some special treatment.
5916 for ac_prog in gawk mawk nawk awk
5917 do
5918 # Extract the first word of "$ac_prog", so it can be a program name with args.
5919 set dummy $ac_prog; ac_word=$2
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5921 $as_echo_n "checking for $ac_word... " >&6; }
5922 if test "${ac_cv_prog_AWK+set}" = set; then :
5923 $as_echo_n "(cached) " >&6
5924 else
5925 if test -n "$AWK"; then
5926 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5927 else
5928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5929 for as_dir in $PATH
5930 do
5931 IFS=$as_save_IFS
5932 test -z "$as_dir" && as_dir=.
5933 for ac_exec_ext in '' $ac_executable_extensions; do
5934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5935 ac_cv_prog_AWK="$ac_prog"
5936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5937 break 2
5938 fi
5939 done
5940 done
5941 IFS=$as_save_IFS
5942
5952 fi
5953
5954
5955 test -n "$AWK" && break
5956 done
5957
5958
5959 if test "x$AWK" = x; then
5960 if test "x" = x; then
5961 PROG_NAME=awk
5962 else
5963 PROG_NAME=
5964 fi
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5966 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5967 as_fn_error $? "Cannot continue" "$LINENO" 5
5968 fi
5969
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5971 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5972 if test "${ac_cv_path_GREP+set}" = set; then :
5973 $as_echo_n "(cached) " >&6
5974 else
5975 if test -z "$GREP"; then
5976 ac_path_GREP_found=false
5977 # Loop through the user's path and test for each of PROGNAME-LIST
5978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5980 do
5981 IFS=$as_save_IFS
5982 test -z "$as_dir" && as_dir=.
5983 for ac_prog in grep ggrep; do
5984 for ac_exec_ext in '' $ac_executable_extensions; do
5985 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5986 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5987 # Check for GNU ac_path_GREP and select it if it is found.
5988 # Check for GNU $ac_path_GREP
5989 case `"$ac_path_GREP" --version 2>&1` in
5990 *GNU*)
5991 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5992 *)
6027 fi
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6029 $as_echo "$ac_cv_path_GREP" >&6; }
6030 GREP="$ac_cv_path_GREP"
6031
6032
6033
6034 if test "x$GREP" = x; then
6035 if test "x" = x; then
6036 PROG_NAME=grep
6037 else
6038 PROG_NAME=
6039 fi
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6041 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6042 as_fn_error $? "Cannot continue" "$LINENO" 5
6043 fi
6044
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6046 $as_echo_n "checking for egrep... " >&6; }
6047 if test "${ac_cv_path_EGREP+set}" = set; then :
6048 $as_echo_n "(cached) " >&6
6049 else
6050 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6051 then ac_cv_path_EGREP="$GREP -E"
6052 else
6053 if test -z "$EGREP"; then
6054 ac_path_EGREP_found=false
6055 # Loop through the user's path and test for each of PROGNAME-LIST
6056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6057 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6058 do
6059 IFS=$as_save_IFS
6060 test -z "$as_dir" && as_dir=.
6061 for ac_prog in egrep; do
6062 for ac_exec_ext in '' $ac_executable_extensions; do
6063 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6064 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6065 # Check for GNU ac_path_EGREP and select it if it is found.
6066 # Check for GNU $ac_path_EGREP
6067 case `"$ac_path_EGREP" --version 2>&1` in
6106 fi
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6108 $as_echo "$ac_cv_path_EGREP" >&6; }
6109 EGREP="$ac_cv_path_EGREP"
6110
6111
6112
6113 if test "x$EGREP" = x; then
6114 if test "x" = x; then
6115 PROG_NAME=egrep
6116 else
6117 PROG_NAME=
6118 fi
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6120 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6121 as_fn_error $? "Cannot continue" "$LINENO" 5
6122 fi
6123
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6125 $as_echo_n "checking for fgrep... " >&6; }
6126 if test "${ac_cv_path_FGREP+set}" = set; then :
6127 $as_echo_n "(cached) " >&6
6128 else
6129 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6130 then ac_cv_path_FGREP="$GREP -F"
6131 else
6132 if test -z "$FGREP"; then
6133 ac_path_FGREP_found=false
6134 # Loop through the user's path and test for each of PROGNAME-LIST
6135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6136 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6137 do
6138 IFS=$as_save_IFS
6139 test -z "$as_dir" && as_dir=.
6140 for ac_prog in fgrep; do
6141 for ac_exec_ext in '' $ac_executable_extensions; do
6142 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6143 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6144 # Check for GNU ac_path_FGREP and select it if it is found.
6145 # Check for GNU $ac_path_FGREP
6146 case `"$ac_path_FGREP" --version 2>&1` in
6185 fi
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6187 $as_echo "$ac_cv_path_FGREP" >&6; }
6188 FGREP="$ac_cv_path_FGREP"
6189
6190
6191
6192 if test "x$FGREP" = x; then
6193 if test "x" = x; then
6194 PROG_NAME=fgrep
6195 else
6196 PROG_NAME=
6197 fi
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6199 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6200 as_fn_error $? "Cannot continue" "$LINENO" 5
6201 fi
6202
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6204 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6205 if test "${ac_cv_path_SED+set}" = set; then :
6206 $as_echo_n "(cached) " >&6
6207 else
6208 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6209 for ac_i in 1 2 3 4 5 6 7; do
6210 ac_script="$ac_script$as_nl$ac_script"
6211 done
6212 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6213 { ac_script=; unset ac_script;}
6214 if test -z "$SED"; then
6215 ac_path_SED_found=false
6216 # Loop through the user's path and test for each of PROGNAME-LIST
6217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6218 for as_dir in $PATH
6219 do
6220 IFS=$as_save_IFS
6221 test -z "$as_dir" && as_dir=.
6222 for ac_prog in sed gsed; do
6223 for ac_exec_ext in '' $ac_executable_extensions; do
6224 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6225 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6271
6272
6273 if test "x$SED" = x; then
6274 if test "x" = x; then
6275 PROG_NAME=sed
6276 else
6277 PROG_NAME=
6278 fi
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6280 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6281 as_fn_error $? "Cannot continue" "$LINENO" 5
6282 fi
6283
6284
6285 for ac_prog in nawk gawk awk
6286 do
6287 # Extract the first word of "$ac_prog", so it can be a program name with args.
6288 set dummy $ac_prog; ac_word=$2
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6290 $as_echo_n "checking for $ac_word... " >&6; }
6291 if test "${ac_cv_path_NAWK+set}" = set; then :
6292 $as_echo_n "(cached) " >&6
6293 else
6294 case $NAWK in
6295 [\\/]* | ?:[\\/]*)
6296 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
6297 ;;
6298 *)
6299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6300 for as_dir in $PATH
6301 do
6302 IFS=$as_save_IFS
6303 test -z "$as_dir" && as_dir=.
6304 for ac_exec_ext in '' $ac_executable_extensions; do
6305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6306 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
6307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6308 break 2
6309 fi
6310 done
6311 done
6331 if test "x$NAWK" = x; then
6332 if test "x" = x; then
6333 PROG_NAME=nawk
6334 else
6335 PROG_NAME=
6336 fi
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6338 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6339 as_fn_error $? "Cannot continue" "$LINENO" 5
6340 fi
6341
6342
6343 # Always force rm.
6344 RM="$RM -f"
6345
6346 # These are not required on all platforms
6347 # Extract the first word of "cygpath", so it can be a program name with args.
6348 set dummy cygpath; ac_word=$2
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6350 $as_echo_n "checking for $ac_word... " >&6; }
6351 if test "${ac_cv_path_CYGPATH+set}" = set; then :
6352 $as_echo_n "(cached) " >&6
6353 else
6354 case $CYGPATH in
6355 [\\/]* | ?:[\\/]*)
6356 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
6357 ;;
6358 *)
6359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6360 for as_dir in $PATH
6361 do
6362 IFS=$as_save_IFS
6363 test -z "$as_dir" && as_dir=.
6364 for ac_exec_ext in '' $ac_executable_extensions; do
6365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6366 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
6367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6368 break 2
6369 fi
6370 done
6371 done
6372 IFS=$as_save_IFS
6373
6374 ;;
6375 esac
6376 fi
6377 CYGPATH=$ac_cv_path_CYGPATH
6378 if test -n "$CYGPATH"; then
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
6380 $as_echo "$CYGPATH" >&6; }
6381 else
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6383 $as_echo "no" >&6; }
6384 fi
6385
6386
6387 # Extract the first word of "readlink", so it can be a program name with args.
6388 set dummy readlink; ac_word=$2
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6390 $as_echo_n "checking for $ac_word... " >&6; }
6391 if test "${ac_cv_path_READLINK+set}" = set; then :
6392 $as_echo_n "(cached) " >&6
6393 else
6394 case $READLINK in
6395 [\\/]* | ?:[\\/]*)
6396 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
6397 ;;
6398 *)
6399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6400 for as_dir in $PATH
6401 do
6402 IFS=$as_save_IFS
6403 test -z "$as_dir" && as_dir=.
6404 for ac_exec_ext in '' $ac_executable_extensions; do
6405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6406 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
6407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6408 break 2
6409 fi
6410 done
6411 done
6412 IFS=$as_save_IFS
6413
6414 ;;
6415 esac
6416 fi
6417 READLINK=$ac_cv_path_READLINK
6418 if test -n "$READLINK"; then
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
6420 $as_echo "$READLINK" >&6; }
6421 else
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6423 $as_echo "no" >&6; }
6424 fi
6425
6426
6427 # Extract the first word of "df", so it can be a program name with args.
6428 set dummy df; ac_word=$2
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6430 $as_echo_n "checking for $ac_word... " >&6; }
6431 if test "${ac_cv_path_DF+set}" = set; then :
6432 $as_echo_n "(cached) " >&6
6433 else
6434 case $DF in
6435 [\\/]* | ?:[\\/]*)
6436 ac_cv_path_DF="$DF" # Let the user override the test with a path.
6437 ;;
6438 *)
6439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6440 for as_dir in $PATH
6441 do
6442 IFS=$as_save_IFS
6443 test -z "$as_dir" && as_dir=.
6444 for ac_exec_ext in '' $ac_executable_extensions; do
6445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6446 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
6447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6448 break 2
6449 fi
6450 done
6451 done
6452 IFS=$as_save_IFS
6453
6454 ;;
6455 esac
6456 fi
6457 DF=$ac_cv_path_DF
6458 if test -n "$DF"; then
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
6460 $as_echo "$DF" >&6; }
6461 else
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6463 $as_echo "no" >&6; }
6464 fi
6465
6466
6467 # Extract the first word of "SetFile", so it can be a program name with args.
6468 set dummy SetFile; ac_word=$2
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6470 $as_echo_n "checking for $ac_word... " >&6; }
6471 if test "${ac_cv_path_SETFILE+set}" = set; then :
6472 $as_echo_n "(cached) " >&6
6473 else
6474 case $SETFILE in
6475 [\\/]* | ?:[\\/]*)
6476 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
6477 ;;
6478 *)
6479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6480 for as_dir in $PATH
6481 do
6482 IFS=$as_save_IFS
6483 test -z "$as_dir" && as_dir=.
6484 for ac_exec_ext in '' $ac_executable_extensions; do
6485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6486 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
6487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6488 break 2
6489 fi
6490 done
6491 done
6497 SETFILE=$ac_cv_path_SETFILE
6498 if test -n "$SETFILE"; then
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
6500 $as_echo "$SETFILE" >&6; }
6501 else
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6503 $as_echo "no" >&6; }
6504 fi
6505
6506
6507
6508
6509 # Now we can determine OpenJDK build and target platforms. This is required to
6510 # have early on.
6511 # Make sure we can run config.sub.
6512 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6513 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6514
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6516 $as_echo_n "checking build system type... " >&6; }
6517 if test "${ac_cv_build+set}" = set; then :
6518 $as_echo_n "(cached) " >&6
6519 else
6520 ac_build_alias=$build_alias
6521 test "x$ac_build_alias" = x &&
6522 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6523 test "x$ac_build_alias" = x &&
6524 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6525 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6526 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6527
6528 fi
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6530 $as_echo "$ac_cv_build" >&6; }
6531 case $ac_cv_build in
6532 *-*-*) ;;
6533 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
6534 esac
6535 build=$ac_cv_build
6536 ac_save_IFS=$IFS; IFS='-'
6537 set x $ac_cv_build
6538 shift
6539 build_cpu=$1
6540 build_vendor=$2
6541 shift; shift
6542 # Remember, the first character of IFS is used to create $*,
6543 # except with old shells:
6544 build_os=$*
6545 IFS=$ac_save_IFS
6546 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6547
6548
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6550 $as_echo_n "checking host system type... " >&6; }
6551 if test "${ac_cv_host+set}" = set; then :
6552 $as_echo_n "(cached) " >&6
6553 else
6554 if test "x$host_alias" = x; then
6555 ac_cv_host=$ac_cv_build
6556 else
6557 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6558 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6559 fi
6560
6561 fi
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6563 $as_echo "$ac_cv_host" >&6; }
6564 case $ac_cv_host in
6565 *-*-*) ;;
6566 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
6567 esac
6568 host=$ac_cv_host
6569 ac_save_IFS=$IFS; IFS='-'
6570 set x $ac_cv_host
6571 shift
6572 host_cpu=$1
6573 host_vendor=$2
6574 shift; shift
6575 # Remember, the first character of IFS is used to create $*,
6576 # except with old shells:
6577 host_os=$*
6578 IFS=$ac_save_IFS
6579 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6580
6581
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
6583 $as_echo_n "checking target system type... " >&6; }
6584 if test "${ac_cv_target+set}" = set; then :
6585 $as_echo_n "(cached) " >&6
6586 else
6587 if test "x$target_alias" = x; then
6588 ac_cv_target=$ac_cv_host
6589 else
6590 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
6591 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
6592 fi
6593
6594 fi
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
6596 $as_echo "$ac_cv_target" >&6; }
6597 case $ac_cv_target in
6598 *-*-*) ;;
6599 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;;
6600 esac
6601 target=$ac_cv_target
6602 ac_save_IFS=$IFS; IFS='-'
6603 set x $ac_cv_target
6604 shift
6605 target_cpu=$1
6606 target_vendor=$2
6607 shift; shift
6608 # Remember, the first character of IFS is used to create $*,
6609 # except with old shells:
6610 target_os=$*
6611 IFS=$ac_save_IFS
6612 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
6613
6614
6615 # The aliases save the names the user supplied, while $host etc.
6616 # will get canonicalized.
6617 test -n "$target_alias" &&
6618 test "$program_prefix$program_suffix$program_transform_name" = \
6619 NONENONEs,x,x, &&
8045 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in"
8046
8047 # The generated Makefile knows where the spec.gmk is and where the source is.
8048 # You can run make from the OUTPUT_ROOT, or from the top-level Makefile
8049 # which will look for generated configurations
8050 ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in"
8051
8052
8053 # Save the arguments given to us
8054 echo "$CONFIGURE_COMMAND_LINE" > $OUTPUT_ROOT/configure-arguments
8055
8056
8057 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
8058
8059 for ac_prog in apt-get yum port pkgutil pkgadd
8060 do
8061 # Extract the first word of "$ac_prog", so it can be a program name with args.
8062 set dummy $ac_prog; ac_word=$2
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8064 $as_echo_n "checking for $ac_word... " >&6; }
8065 if test "${ac_cv_prog_PKGHANDLER+set}" = set; then :
8066 $as_echo_n "(cached) " >&6
8067 else
8068 if test -n "$PKGHANDLER"; then
8069 ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
8070 else
8071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8072 for as_dir in $PATH
8073 do
8074 IFS=$as_save_IFS
8075 test -z "$as_dir" && as_dir=.
8076 for ac_exec_ext in '' $ac_executable_extensions; do
8077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8078 ac_cv_prog_PKGHANDLER="$ac_prog"
8079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8080 break 2
8081 fi
8082 done
8083 done
8084 IFS=$as_save_IFS
8085
8147 FOUND_MAKE=$MAKE_CANDIDATE
8148
8149 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
8150
8151 # First separate the path from the arguments. This will split at the first
8152 # space.
8153 complete="$FOUND_MAKE"
8154 path="${complete%% *}"
8155 tmp="$complete EOL"
8156 arguments="${tmp#* }"
8157
8158 # Input might be given as Windows format, start by converting to
8159 # unix format.
8160 new_path=`$CYGPATH -u "$path"`
8161
8162 # Now try to locate executable using which
8163 new_path=`$WHICH "$new_path" 2> /dev/null`
8164 # bat and cmd files are not always considered executable in cygwin causing which
8165 # to not find them
8166 if test "x$new_path" = x \
8167 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
8168 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
8169 new_path=`$CYGPATH -u "$path"`
8170 fi
8171 if test "x$new_path" = x; then
8172 # Oops. Which didn't find the executable.
8173 # The splitting of arguments from the executable at a space might have been incorrect,
8174 # since paths with space are more likely in Windows. Give it another try with the whole
8175 # argument.
8176 path="$complete"
8177 arguments="EOL"
8178 new_path=`$CYGPATH -u "$path"`
8179 new_path=`$WHICH "$new_path" 2> /dev/null`
8180 # bat and cmd files are not always considered executable in cygwin causing which
8181 # to not find them
8182 if test "x$new_path" = x \
8183 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
8184 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
8185 new_path=`$CYGPATH -u "$path"`
8186 fi
8187 if test "x$new_path" = x; then
8188 # It's still not found. Now this is an unrecoverable error.
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
8190 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
8191 has_space=`$ECHO "$complete" | $GREP " "`
8192 if test "x$has_space" != x; then
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
8194 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
8195 fi
8196 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
8197 fi
8198 fi
8199
8200 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
8201 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
8202 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
8203 # "foo.exe" is OK but "foo" is an error.
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
8411 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
8412 fi
8413
8414 fi
8415 fi
8416 fi
8417 fi
8418
8419 if test "x$FOUND_MAKE" = x; then
8420 as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer." "$LINENO" 5
8421 fi
8422 else
8423 # Try our hardest to locate a correct version of GNU make
8424 for ac_prog in gmake
8425 do
8426 # Extract the first word of "$ac_prog", so it can be a program name with args.
8427 set dummy $ac_prog; ac_word=$2
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8429 $as_echo_n "checking for $ac_word... " >&6; }
8430 if test "${ac_cv_path_CHECK_GMAKE+set}" = set; then :
8431 $as_echo_n "(cached) " >&6
8432 else
8433 case $CHECK_GMAKE in
8434 [\\/]* | ?:[\\/]*)
8435 ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
8436 ;;
8437 *)
8438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8439 for as_dir in $PATH
8440 do
8441 IFS=$as_save_IFS
8442 test -z "$as_dir" && as_dir=.
8443 for ac_exec_ext in '' $ac_executable_extensions; do
8444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8445 ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
8446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8447 break 2
8448 fi
8449 done
8450 done
8504 FOUND_MAKE=$MAKE_CANDIDATE
8505
8506 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
8507
8508 # First separate the path from the arguments. This will split at the first
8509 # space.
8510 complete="$FOUND_MAKE"
8511 path="${complete%% *}"
8512 tmp="$complete EOL"
8513 arguments="${tmp#* }"
8514
8515 # Input might be given as Windows format, start by converting to
8516 # unix format.
8517 new_path=`$CYGPATH -u "$path"`
8518
8519 # Now try to locate executable using which
8520 new_path=`$WHICH "$new_path" 2> /dev/null`
8521 # bat and cmd files are not always considered executable in cygwin causing which
8522 # to not find them
8523 if test "x$new_path" = x \
8524 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
8525 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
8526 new_path=`$CYGPATH -u "$path"`
8527 fi
8528 if test "x$new_path" = x; then
8529 # Oops. Which didn't find the executable.
8530 # The splitting of arguments from the executable at a space might have been incorrect,
8531 # since paths with space are more likely in Windows. Give it another try with the whole
8532 # argument.
8533 path="$complete"
8534 arguments="EOL"
8535 new_path=`$CYGPATH -u "$path"`
8536 new_path=`$WHICH "$new_path" 2> /dev/null`
8537 # bat and cmd files are not always considered executable in cygwin causing which
8538 # to not find them
8539 if test "x$new_path" = x \
8540 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
8541 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
8542 new_path=`$CYGPATH -u "$path"`
8543 fi
8544 if test "x$new_path" = x; then
8545 # It's still not found. Now this is an unrecoverable error.
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
8547 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
8548 has_space=`$ECHO "$complete" | $GREP " "`
8549 if test "x$has_space" != x; then
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
8551 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
8552 fi
8553 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
8554 fi
8555 fi
8556
8557 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
8558 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
8559 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
8560 # "foo.exe" is OK but "foo" is an error.
8764
8765 if test "x$complete" != "x$new_complete"; then
8766 FOUND_MAKE="$new_complete"
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
8768 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
8769 fi
8770
8771 fi
8772 fi
8773 fi
8774 fi
8775
8776
8777 if test "x$FOUND_MAKE" = x; then
8778 for ac_prog in make
8779 do
8780 # Extract the first word of "$ac_prog", so it can be a program name with args.
8781 set dummy $ac_prog; ac_word=$2
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8783 $as_echo_n "checking for $ac_word... " >&6; }
8784 if test "${ac_cv_path_CHECK_MAKE+set}" = set; then :
8785 $as_echo_n "(cached) " >&6
8786 else
8787 case $CHECK_MAKE in
8788 [\\/]* | ?:[\\/]*)
8789 ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
8790 ;;
8791 *)
8792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8793 for as_dir in $PATH
8794 do
8795 IFS=$as_save_IFS
8796 test -z "$as_dir" && as_dir=.
8797 for ac_exec_ext in '' $ac_executable_extensions; do
8798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8799 ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
8800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8801 break 2
8802 fi
8803 done
8804 done
8858 FOUND_MAKE=$MAKE_CANDIDATE
8859
8860 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
8861
8862 # First separate the path from the arguments. This will split at the first
8863 # space.
8864 complete="$FOUND_MAKE"
8865 path="${complete%% *}"
8866 tmp="$complete EOL"
8867 arguments="${tmp#* }"
8868
8869 # Input might be given as Windows format, start by converting to
8870 # unix format.
8871 new_path=`$CYGPATH -u "$path"`
8872
8873 # Now try to locate executable using which
8874 new_path=`$WHICH "$new_path" 2> /dev/null`
8875 # bat and cmd files are not always considered executable in cygwin causing which
8876 # to not find them
8877 if test "x$new_path" = x \
8878 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
8879 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
8880 new_path=`$CYGPATH -u "$path"`
8881 fi
8882 if test "x$new_path" = x; then
8883 # Oops. Which didn't find the executable.
8884 # The splitting of arguments from the executable at a space might have been incorrect,
8885 # since paths with space are more likely in Windows. Give it another try with the whole
8886 # argument.
8887 path="$complete"
8888 arguments="EOL"
8889 new_path=`$CYGPATH -u "$path"`
8890 new_path=`$WHICH "$new_path" 2> /dev/null`
8891 # bat and cmd files are not always considered executable in cygwin causing which
8892 # to not find them
8893 if test "x$new_path" = x \
8894 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
8895 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
8896 new_path=`$CYGPATH -u "$path"`
8897 fi
8898 if test "x$new_path" = x; then
8899 # It's still not found. Now this is an unrecoverable error.
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
8901 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
8902 has_space=`$ECHO "$complete" | $GREP " "`
8903 if test "x$has_space" != x; then
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
8905 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
8906 fi
8907 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
8908 fi
8909 fi
8910
8911 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
8912 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
8913 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
8914 # "foo.exe" is OK but "foo" is an error.
9123 fi
9124
9125 fi
9126 fi
9127 fi
9128 fi
9129
9130 fi
9131
9132 if test "x$FOUND_MAKE" = x; then
9133 if test "x$TOOLS_DIR" != x; then
9134 # We have a tools-dir, check that as well before giving up.
9135 OLD_PATH=$PATH
9136 PATH=$TOOLS_DIR:$PATH
9137 for ac_prog in gmake
9138 do
9139 # Extract the first word of "$ac_prog", so it can be a program name with args.
9140 set dummy $ac_prog; ac_word=$2
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9142 $as_echo_n "checking for $ac_word... " >&6; }
9143 if test "${ac_cv_path_CHECK_TOOLSDIR_GMAKE+set}" = set; then :
9144 $as_echo_n "(cached) " >&6
9145 else
9146 case $CHECK_TOOLSDIR_GMAKE in
9147 [\\/]* | ?:[\\/]*)
9148 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
9149 ;;
9150 *)
9151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9152 for as_dir in $PATH
9153 do
9154 IFS=$as_save_IFS
9155 test -z "$as_dir" && as_dir=.
9156 for ac_exec_ext in '' $ac_executable_extensions; do
9157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9158 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
9159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9160 break 2
9161 fi
9162 done
9163 done
9217 FOUND_MAKE=$MAKE_CANDIDATE
9218
9219 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
9220
9221 # First separate the path from the arguments. This will split at the first
9222 # space.
9223 complete="$FOUND_MAKE"
9224 path="${complete%% *}"
9225 tmp="$complete EOL"
9226 arguments="${tmp#* }"
9227
9228 # Input might be given as Windows format, start by converting to
9229 # unix format.
9230 new_path=`$CYGPATH -u "$path"`
9231
9232 # Now try to locate executable using which
9233 new_path=`$WHICH "$new_path" 2> /dev/null`
9234 # bat and cmd files are not always considered executable in cygwin causing which
9235 # to not find them
9236 if test "x$new_path" = x \
9237 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
9238 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
9239 new_path=`$CYGPATH -u "$path"`
9240 fi
9241 if test "x$new_path" = x; then
9242 # Oops. Which didn't find the executable.
9243 # The splitting of arguments from the executable at a space might have been incorrect,
9244 # since paths with space are more likely in Windows. Give it another try with the whole
9245 # argument.
9246 path="$complete"
9247 arguments="EOL"
9248 new_path=`$CYGPATH -u "$path"`
9249 new_path=`$WHICH "$new_path" 2> /dev/null`
9250 # bat and cmd files are not always considered executable in cygwin causing which
9251 # to not find them
9252 if test "x$new_path" = x \
9253 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
9254 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
9255 new_path=`$CYGPATH -u "$path"`
9256 fi
9257 if test "x$new_path" = x; then
9258 # It's still not found. Now this is an unrecoverable error.
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
9260 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
9261 has_space=`$ECHO "$complete" | $GREP " "`
9262 if test "x$has_space" != x; then
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
9264 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
9265 fi
9266 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
9267 fi
9268 fi
9269
9270 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
9271 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
9272 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
9273 # "foo.exe" is OK but "foo" is an error.
9476 fi
9477
9478 if test "x$complete" != "x$new_complete"; then
9479 FOUND_MAKE="$new_complete"
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
9481 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
9482 fi
9483
9484 fi
9485 fi
9486 fi
9487 fi
9488
9489 if test "x$FOUND_MAKE" = x; then
9490 for ac_prog in make
9491 do
9492 # Extract the first word of "$ac_prog", so it can be a program name with args.
9493 set dummy $ac_prog; ac_word=$2
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9495 $as_echo_n "checking for $ac_word... " >&6; }
9496 if test "${ac_cv_path_CHECK_TOOLSDIR_MAKE+set}" = set; then :
9497 $as_echo_n "(cached) " >&6
9498 else
9499 case $CHECK_TOOLSDIR_MAKE in
9500 [\\/]* | ?:[\\/]*)
9501 ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
9502 ;;
9503 *)
9504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9505 for as_dir in $PATH
9506 do
9507 IFS=$as_save_IFS
9508 test -z "$as_dir" && as_dir=.
9509 for ac_exec_ext in '' $ac_executable_extensions; do
9510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9511 ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
9512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9513 break 2
9514 fi
9515 done
9516 done
9570 FOUND_MAKE=$MAKE_CANDIDATE
9571
9572 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
9573
9574 # First separate the path from the arguments. This will split at the first
9575 # space.
9576 complete="$FOUND_MAKE"
9577 path="${complete%% *}"
9578 tmp="$complete EOL"
9579 arguments="${tmp#* }"
9580
9581 # Input might be given as Windows format, start by converting to
9582 # unix format.
9583 new_path=`$CYGPATH -u "$path"`
9584
9585 # Now try to locate executable using which
9586 new_path=`$WHICH "$new_path" 2> /dev/null`
9587 # bat and cmd files are not always considered executable in cygwin causing which
9588 # to not find them
9589 if test "x$new_path" = x \
9590 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
9591 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
9592 new_path=`$CYGPATH -u "$path"`
9593 fi
9594 if test "x$new_path" = x; then
9595 # Oops. Which didn't find the executable.
9596 # The splitting of arguments from the executable at a space might have been incorrect,
9597 # since paths with space are more likely in Windows. Give it another try with the whole
9598 # argument.
9599 path="$complete"
9600 arguments="EOL"
9601 new_path=`$CYGPATH -u "$path"`
9602 new_path=`$WHICH "$new_path" 2> /dev/null`
9603 # bat and cmd files are not always considered executable in cygwin causing which
9604 # to not find them
9605 if test "x$new_path" = x \
9606 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
9607 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
9608 new_path=`$CYGPATH -u "$path"`
9609 fi
9610 if test "x$new_path" = x; then
9611 # It's still not found. Now this is an unrecoverable error.
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
9613 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
9614 has_space=`$ECHO "$complete" | $GREP " "`
9615 if test "x$has_space" != x; then
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
9617 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
9618 fi
9619 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
9620 fi
9621 fi
9622
9623 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
9624 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
9625 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
9626 # "foo.exe" is OK but "foo" is an error.
9872 FIND_DELETE="-exec rm \{\} \+"
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9874 $as_echo "no" >&6; }
9875 else
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9877 $as_echo "yes" >&6; }
9878 fi
9879 rmdir $DELETEDIR
9880
9881
9882
9883 # These tools might not be installed by default,
9884 # need hint on how to install them.
9885
9886 for ac_prog in unzip
9887 do
9888 # Extract the first word of "$ac_prog", so it can be a program name with args.
9889 set dummy $ac_prog; ac_word=$2
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9891 $as_echo_n "checking for $ac_word... " >&6; }
9892 if test "${ac_cv_path_UNZIP+set}" = set; then :
9893 $as_echo_n "(cached) " >&6
9894 else
9895 case $UNZIP in
9896 [\\/]* | ?:[\\/]*)
9897 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
9898 ;;
9899 *)
9900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9901 for as_dir in $PATH
9902 do
9903 IFS=$as_save_IFS
9904 test -z "$as_dir" && as_dir=.
9905 for ac_exec_ext in '' $ac_executable_extensions; do
9906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9907 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
9908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9909 break 2
9910 fi
9911 done
9912 done
9931
9932 if test "x$UNZIP" = x; then
9933 if test "xunzip" = x; then
9934 PROG_NAME=unzip
9935 else
9936 PROG_NAME=unzip
9937 fi
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
9939 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
9940 as_fn_error $? "Cannot continue" "$LINENO" 5
9941 fi
9942
9943
9944
9945 for ac_prog in zip
9946 do
9947 # Extract the first word of "$ac_prog", so it can be a program name with args.
9948 set dummy $ac_prog; ac_word=$2
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9950 $as_echo_n "checking for $ac_word... " >&6; }
9951 if test "${ac_cv_path_ZIP+set}" = set; then :
9952 $as_echo_n "(cached) " >&6
9953 else
9954 case $ZIP in
9955 [\\/]* | ?:[\\/]*)
9956 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
9957 ;;
9958 *)
9959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9960 for as_dir in $PATH
9961 do
9962 IFS=$as_save_IFS
9963 test -z "$as_dir" && as_dir=.
9964 for ac_exec_ext in '' $ac_executable_extensions; do
9965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9966 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
9967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9968 break 2
9969 fi
9970 done
9971 done
9990
9991 if test "x$ZIP" = x; then
9992 if test "xzip" = x; then
9993 PROG_NAME=zip
9994 else
9995 PROG_NAME=zip
9996 fi
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
9998 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
9999 as_fn_error $? "Cannot continue" "$LINENO" 5
10000 fi
10001
10002
10003
10004 # Non-required basic tools
10005
10006 # Extract the first word of "ldd", so it can be a program name with args.
10007 set dummy ldd; ac_word=$2
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10009 $as_echo_n "checking for $ac_word... " >&6; }
10010 if test "${ac_cv_path_LDD+set}" = set; then :
10011 $as_echo_n "(cached) " >&6
10012 else
10013 case $LDD in
10014 [\\/]* | ?:[\\/]*)
10015 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
10016 ;;
10017 *)
10018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10019 for as_dir in $PATH
10020 do
10021 IFS=$as_save_IFS
10022 test -z "$as_dir" && as_dir=.
10023 for ac_exec_ext in '' $ac_executable_extensions; do
10024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10025 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
10026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10027 break 2
10028 fi
10029 done
10030 done
10036 LDD=$ac_cv_path_LDD
10037 if test -n "$LDD"; then
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
10039 $as_echo "$LDD" >&6; }
10040 else
10041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10042 $as_echo "no" >&6; }
10043 fi
10044
10045
10046 if test "x$LDD" = "x"; then
10047 # List shared lib dependencies is used for
10048 # debug output and checking for forbidden dependencies.
10049 # We can build without it.
10050 LDD="true"
10051 fi
10052 # Extract the first word of "otool", so it can be a program name with args.
10053 set dummy otool; ac_word=$2
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10055 $as_echo_n "checking for $ac_word... " >&6; }
10056 if test "${ac_cv_path_OTOOL+set}" = set; then :
10057 $as_echo_n "(cached) " >&6
10058 else
10059 case $OTOOL in
10060 [\\/]* | ?:[\\/]*)
10061 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
10062 ;;
10063 *)
10064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10065 for as_dir in $PATH
10066 do
10067 IFS=$as_save_IFS
10068 test -z "$as_dir" && as_dir=.
10069 for ac_exec_ext in '' $ac_executable_extensions; do
10070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10071 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
10072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10073 break 2
10074 fi
10075 done
10076 done
10081 fi
10082 OTOOL=$ac_cv_path_OTOOL
10083 if test -n "$OTOOL"; then
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10085 $as_echo "$OTOOL" >&6; }
10086 else
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10088 $as_echo "no" >&6; }
10089 fi
10090
10091
10092 if test "x$OTOOL" = "x"; then
10093 OTOOL="true"
10094 fi
10095 for ac_prog in readelf greadelf
10096 do
10097 # Extract the first word of "$ac_prog", so it can be a program name with args.
10098 set dummy $ac_prog; ac_word=$2
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10100 $as_echo_n "checking for $ac_word... " >&6; }
10101 if test "${ac_cv_path_READELF+set}" = set; then :
10102 $as_echo_n "(cached) " >&6
10103 else
10104 case $READELF in
10105 [\\/]* | ?:[\\/]*)
10106 ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
10107 ;;
10108 *)
10109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10110 for as_dir in $PATH
10111 do
10112 IFS=$as_save_IFS
10113 test -z "$as_dir" && as_dir=.
10114 for ac_exec_ext in '' $ac_executable_extensions; do
10115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10116 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
10117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10118 break 2
10119 fi
10120 done
10121 done
10124 ;;
10125 esac
10126 fi
10127 READELF=$ac_cv_path_READELF
10128 if test -n "$READELF"; then
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10130 $as_echo "$READELF" >&6; }
10131 else
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10133 $as_echo "no" >&6; }
10134 fi
10135
10136
10137 test -n "$READELF" && break
10138 done
10139
10140 # Extract the first word of "hg", so it can be a program name with args.
10141 set dummy hg; ac_word=$2
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10143 $as_echo_n "checking for $ac_word... " >&6; }
10144 if test "${ac_cv_path_HG+set}" = set; then :
10145 $as_echo_n "(cached) " >&6
10146 else
10147 case $HG in
10148 [\\/]* | ?:[\\/]*)
10149 ac_cv_path_HG="$HG" # Let the user override the test with a path.
10150 ;;
10151 *)
10152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10153 for as_dir in $PATH
10154 do
10155 IFS=$as_save_IFS
10156 test -z "$as_dir" && as_dir=.
10157 for ac_exec_ext in '' $ac_executable_extensions; do
10158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10159 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
10160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10161 break 2
10162 fi
10163 done
10164 done
10165 IFS=$as_save_IFS
10166
10167 ;;
10168 esac
10169 fi
10170 HG=$ac_cv_path_HG
10171 if test -n "$HG"; then
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
10173 $as_echo "$HG" >&6; }
10174 else
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10176 $as_echo "no" >&6; }
10177 fi
10178
10179
10180 # Extract the first word of "stat", so it can be a program name with args.
10181 set dummy stat; ac_word=$2
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10183 $as_echo_n "checking for $ac_word... " >&6; }
10184 if test "${ac_cv_path_STAT+set}" = set; then :
10185 $as_echo_n "(cached) " >&6
10186 else
10187 case $STAT in
10188 [\\/]* | ?:[\\/]*)
10189 ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
10190 ;;
10191 *)
10192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10193 for as_dir in $PATH
10194 do
10195 IFS=$as_save_IFS
10196 test -z "$as_dir" && as_dir=.
10197 for ac_exec_ext in '' $ac_executable_extensions; do
10198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10199 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
10200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10201 break 2
10202 fi
10203 done
10204 done
10205 IFS=$as_save_IFS
10206
10207 ;;
10208 esac
10209 fi
10210 STAT=$ac_cv_path_STAT
10211 if test -n "$STAT"; then
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
10213 $as_echo "$STAT" >&6; }
10214 else
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10216 $as_echo "no" >&6; }
10217 fi
10218
10219
10220 # Extract the first word of "time", so it can be a program name with args.
10221 set dummy time; ac_word=$2
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10223 $as_echo_n "checking for $ac_word... " >&6; }
10224 if test "${ac_cv_path_TIME+set}" = set; then :
10225 $as_echo_n "(cached) " >&6
10226 else
10227 case $TIME in
10228 [\\/]* | ?:[\\/]*)
10229 ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
10230 ;;
10231 *)
10232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10233 for as_dir in $PATH
10234 do
10235 IFS=$as_save_IFS
10236 test -z "$as_dir" && as_dir=.
10237 for ac_exec_ext in '' $ac_executable_extensions; do
10238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10239 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
10240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10241 break 2
10242 fi
10243 done
10244 done
10249 fi
10250 TIME=$ac_cv_path_TIME
10251 if test -n "$TIME"; then
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
10253 $as_echo "$TIME" >&6; }
10254 else
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10256 $as_echo "no" >&6; }
10257 fi
10258
10259
10260
10261 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
10262
10263 for ac_prog in comm
10264 do
10265 # Extract the first word of "$ac_prog", so it can be a program name with args.
10266 set dummy $ac_prog; ac_word=$2
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10268 $as_echo_n "checking for $ac_word... " >&6; }
10269 if test "${ac_cv_path_COMM+set}" = set; then :
10270 $as_echo_n "(cached) " >&6
10271 else
10272 case $COMM in
10273 [\\/]* | ?:[\\/]*)
10274 ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
10275 ;;
10276 *)
10277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10278 for as_dir in $PATH
10279 do
10280 IFS=$as_save_IFS
10281 test -z "$as_dir" && as_dir=.
10282 for ac_exec_ext in '' $ac_executable_extensions; do
10283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10284 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
10285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10286 break 2
10287 fi
10288 done
10289 done
10313 PROG_NAME=comm
10314 fi
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
10316 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
10317 as_fn_error $? "Cannot continue" "$LINENO" 5
10318 fi
10319
10320
10321 fi
10322
10323
10324 # Check if pkg-config is available.
10325
10326
10327 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10328 if test -n "$ac_tool_prefix"; then
10329 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10330 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10332 $as_echo_n "checking for $ac_word... " >&6; }
10333 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10334 $as_echo_n "(cached) " >&6
10335 else
10336 case $PKG_CONFIG in
10337 [\\/]* | ?:[\\/]*)
10338 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10339 ;;
10340 *)
10341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10342 for as_dir in $PATH
10343 do
10344 IFS=$as_save_IFS
10345 test -z "$as_dir" && as_dir=.
10346 for ac_exec_ext in '' $ac_executable_extensions; do
10347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10348 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10350 break 2
10351 fi
10352 done
10353 done
10356 ;;
10357 esac
10358 fi
10359 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10360 if test -n "$PKG_CONFIG"; then
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10362 $as_echo "$PKG_CONFIG" >&6; }
10363 else
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10365 $as_echo "no" >&6; }
10366 fi
10367
10368
10369 fi
10370 if test -z "$ac_cv_path_PKG_CONFIG"; then
10371 ac_pt_PKG_CONFIG=$PKG_CONFIG
10372 # Extract the first word of "pkg-config", so it can be a program name with args.
10373 set dummy pkg-config; ac_word=$2
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10375 $as_echo_n "checking for $ac_word... " >&6; }
10376 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
10377 $as_echo_n "(cached) " >&6
10378 else
10379 case $ac_pt_PKG_CONFIG in
10380 [\\/]* | ?:[\\/]*)
10381 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10382 ;;
10383 *)
10384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10385 for as_dir in $PATH
10386 do
10387 IFS=$as_save_IFS
10388 test -z "$as_dir" && as_dir=.
10389 for ac_exec_ext in '' $ac_executable_extensions; do
10390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10391 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10393 break 2
10394 fi
10395 done
10396 done
10529 echo Build stays the same $rewritten_build
10530 else
10531 echo Rewriting build for builddeps into $rewritten_build
10532 fi
10533 eval rewritten_target=\${REWRITE_${target_var}}
10534 if test "x$rewritten_target" = x; then
10535 rewritten_target=${OPENJDK_TARGET_AUTOCONF_NAME}
10536 echo Target stays the same $rewritten_target
10537 else
10538 echo Rewriting target for builddeps into $rewritten_target
10539 fi
10540 rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'`
10541 rewritten_target_var=`echo ${rewritten_target} | tr '-' '_' | tr '.' '_'`
10542 fi
10543 for ac_prog in 7z unzip
10544 do
10545 # Extract the first word of "$ac_prog", so it can be a program name with args.
10546 set dummy $ac_prog; ac_word=$2
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10548 $as_echo_n "checking for $ac_word... " >&6; }
10549 if test "${ac_cv_prog_BDEPS_UNZIP+set}" = set; then :
10550 $as_echo_n "(cached) " >&6
10551 else
10552 if test -n "$BDEPS_UNZIP"; then
10553 ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test.
10554 else
10555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10556 for as_dir in $PATH
10557 do
10558 IFS=$as_save_IFS
10559 test -z "$as_dir" && as_dir=.
10560 for ac_exec_ext in '' $ac_executable_extensions; do
10561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10562 ac_cv_prog_BDEPS_UNZIP="$ac_prog"
10563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10564 break 2
10565 fi
10566 done
10567 done
10568 IFS=$as_save_IFS
10569
10575 $as_echo "$BDEPS_UNZIP" >&6; }
10576 else
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10578 $as_echo "no" >&6; }
10579 fi
10580
10581
10582 test -n "$BDEPS_UNZIP" && break
10583 done
10584
10585 if test "x$BDEPS_UNZIP" = x7z; then
10586 BDEPS_UNZIP="7z x"
10587 fi
10588
10589 for ac_prog in wget lftp ftp
10590 do
10591 # Extract the first word of "$ac_prog", so it can be a program name with args.
10592 set dummy $ac_prog; ac_word=$2
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10594 $as_echo_n "checking for $ac_word... " >&6; }
10595 if test "${ac_cv_prog_BDEPS_FTP+set}" = set; then :
10596 $as_echo_n "(cached) " >&6
10597 else
10598 if test -n "$BDEPS_FTP"; then
10599 ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test.
10600 else
10601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10602 for as_dir in $PATH
10603 do
10604 IFS=$as_save_IFS
10605 test -z "$as_dir" && as_dir=.
10606 for ac_exec_ext in '' $ac_executable_extensions; do
10607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10608 ac_cv_prog_BDEPS_FTP="$ac_prog"
10609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10610 break 2
10611 fi
10612 done
10613 done
10614 IFS=$as_save_IFS
10615
11841 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '`
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
11843 $as_echo "$BOOT_JDK_VERSION" >&6; }
11844 fi # end check jdk version
11845 fi # end check rt.jar
11846 fi # end check javac
11847 fi # end check java
11848 fi # end check boot jdk found
11849 fi
11850
11851
11852 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
11853
11854 if test "x$BOOT_JDK_FOUND" = xno; then
11855 # Now execute the test
11856
11857 # Extract the first word of "javac", so it can be a program name with args.
11858 set dummy javac; ac_word=$2
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11860 $as_echo_n "checking for $ac_word... " >&6; }
11861 if test "${ac_cv_path_JAVAC_CHECK+set}" = set; then :
11862 $as_echo_n "(cached) " >&6
11863 else
11864 case $JAVAC_CHECK in
11865 [\\/]* | ?:[\\/]*)
11866 ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path.
11867 ;;
11868 *)
11869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11870 for as_dir in $PATH
11871 do
11872 IFS=$as_save_IFS
11873 test -z "$as_dir" && as_dir=.
11874 for ac_exec_ext in '' $ac_executable_extensions; do
11875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11876 ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext"
11877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11878 break 2
11879 fi
11880 done
11881 done
11882 IFS=$as_save_IFS
11883
11884 ;;
11885 esac
11886 fi
11887 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK
11888 if test -n "$JAVAC_CHECK"; then
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5
11890 $as_echo "$JAVAC_CHECK" >&6; }
11891 else
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11893 $as_echo "no" >&6; }
11894 fi
11895
11896
11897 # Extract the first word of "java", so it can be a program name with args.
11898 set dummy java; ac_word=$2
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11900 $as_echo_n "checking for $ac_word... " >&6; }
11901 if test "${ac_cv_path_JAVA_CHECK+set}" = set; then :
11902 $as_echo_n "(cached) " >&6
11903 else
11904 case $JAVA_CHECK in
11905 [\\/]* | ?:[\\/]*)
11906 ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path.
11907 ;;
11908 *)
11909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11910 for as_dir in $PATH
11911 do
11912 IFS=$as_save_IFS
11913 test -z "$as_dir" && as_dir=.
11914 for ac_exec_ext in '' $ac_executable_extensions; do
11915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11916 ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext"
11917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11918 break 2
11919 fi
11920 done
11921 done
15940 EXE_OUT_OPTION='-o$(SPACE)'
15941 # When linking, how to specify the to be created dynamically linkable library.
15942 LD_OUT_OPTION='-o$(SPACE)'
15943 # When archiving, how to specify the to be create static archive for object files.
15944 AR_OUT_OPTION='rcs$(SPACE)'
15945
15946
15947
15948
15949
15950 # Locate the actual tools
15951
15952 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
15953
15954 # Store path to cygwin link.exe to help excluding it when searching for
15955 # VS linker. This must be done before changing the PATH when looking for VS.
15956 # Extract the first word of "link", so it can be a program name with args.
15957 set dummy link; ac_word=$2
15958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15959 $as_echo_n "checking for $ac_word... " >&6; }
15960 if test "${ac_cv_path_CYGWIN_LINK+set}" = set; then :
15961 $as_echo_n "(cached) " >&6
15962 else
15963 case $CYGWIN_LINK in
15964 [\\/]* | ?:[\\/]*)
15965 ac_cv_path_CYGWIN_LINK="$CYGWIN_LINK" # Let the user override the test with a path.
15966 ;;
15967 *)
15968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15969 for as_dir in $PATH
15970 do
15971 IFS=$as_save_IFS
15972 test -z "$as_dir" && as_dir=.
15973 for ac_exec_ext in '' $ac_executable_extensions; do
15974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15975 ac_cv_path_CYGWIN_LINK="$as_dir/$ac_word$ac_exec_ext"
15976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15977 break 2
15978 fi
15979 done
15980 done
16387 # We have found a Visual Studio environment on disk, let's extract variables from the vsvars bat file.
16388
16389 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16390
16391 # First separate the path from the arguments. This will split at the first
16392 # space.
16393 complete="$VS_ENV_CMD"
16394 path="${complete%% *}"
16395 tmp="$complete EOL"
16396 arguments="${tmp#* }"
16397
16398 # Input might be given as Windows format, start by converting to
16399 # unix format.
16400 new_path=`$CYGPATH -u "$path"`
16401
16402 # Now try to locate executable using which
16403 new_path=`$WHICH "$new_path" 2> /dev/null`
16404 # bat and cmd files are not always considered executable in cygwin causing which
16405 # to not find them
16406 if test "x$new_path" = x \
16407 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16408 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16409 new_path=`$CYGPATH -u "$path"`
16410 fi
16411 if test "x$new_path" = x; then
16412 # Oops. Which didn't find the executable.
16413 # The splitting of arguments from the executable at a space might have been incorrect,
16414 # since paths with space are more likely in Windows. Give it another try with the whole
16415 # argument.
16416 path="$complete"
16417 arguments="EOL"
16418 new_path=`$CYGPATH -u "$path"`
16419 new_path=`$WHICH "$new_path" 2> /dev/null`
16420 # bat and cmd files are not always considered executable in cygwin causing which
16421 # to not find them
16422 if test "x$new_path" = x \
16423 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16424 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16425 new_path=`$CYGPATH -u "$path"`
16426 fi
16427 if test "x$new_path" = x; then
16428 # It's still not found. Now this is an unrecoverable error.
16429 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5
16430 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;}
16431 has_space=`$ECHO "$complete" | $GREP " "`
16432 if test "x$has_space" != x; then
16433 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16434 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16435 fi
16436 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5
16437 fi
16438 fi
16439
16440 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16441 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16442 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16443 # "foo.exe" is OK but "foo" is an error.
16929 # For example the binary i686-sun-solaris2.10-gcc
16930 # will cross compile for i686-sun-solaris2.10
16931 # If neither of build and host is not set, then build=host and the
16932 # default compiler found in the path will be used.
16933 # Setting only --host, does not seem to be really supported.
16934 # Please set both --build and --host if you want to cross compile.
16935
16936 if test "x$COMPILE_TYPE" = "xcross"; then
16937 # Now we to find a C/C++ compiler that can build executables for the build
16938 # platform. We can't use the AC_PROG_CC macro, since it can only be used
16939 # once. Also, we need to do this before adding a tools dir to the path,
16940 # otherwise we might pick up cross-compilers which don't use standard naming.
16941 # Otherwise, we'll set the BUILD_tools to the native tools, but that'll have
16942 # to wait until they are properly discovered.
16943 for ac_prog in cl cc gcc
16944 do
16945 # Extract the first word of "$ac_prog", so it can be a program name with args.
16946 set dummy $ac_prog; ac_word=$2
16947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16948 $as_echo_n "checking for $ac_word... " >&6; }
16949 if test "${ac_cv_path_BUILD_CC+set}" = set; then :
16950 $as_echo_n "(cached) " >&6
16951 else
16952 case $BUILD_CC in
16953 [\\/]* | ?:[\\/]*)
16954 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path.
16955 ;;
16956 *)
16957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16958 for as_dir in $PATH
16959 do
16960 IFS=$as_save_IFS
16961 test -z "$as_dir" && as_dir=.
16962 for ac_exec_ext in '' $ac_executable_extensions; do
16963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16964 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext"
16965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16966 break 2
16967 fi
16968 done
16969 done
16987
16988
16989 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16990
16991 # First separate the path from the arguments. This will split at the first
16992 # space.
16993 complete="$BUILD_CC"
16994 path="${complete%% *}"
16995 tmp="$complete EOL"
16996 arguments="${tmp#* }"
16997
16998 # Input might be given as Windows format, start by converting to
16999 # unix format.
17000 new_path=`$CYGPATH -u "$path"`
17001
17002 # Now try to locate executable using which
17003 new_path=`$WHICH "$new_path" 2> /dev/null`
17004 # bat and cmd files are not always considered executable in cygwin causing which
17005 # to not find them
17006 if test "x$new_path" = x \
17007 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17008 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17009 new_path=`$CYGPATH -u "$path"`
17010 fi
17011 if test "x$new_path" = x; then
17012 # Oops. Which didn't find the executable.
17013 # The splitting of arguments from the executable at a space might have been incorrect,
17014 # since paths with space are more likely in Windows. Give it another try with the whole
17015 # argument.
17016 path="$complete"
17017 arguments="EOL"
17018 new_path=`$CYGPATH -u "$path"`
17019 new_path=`$WHICH "$new_path" 2> /dev/null`
17020 # bat and cmd files are not always considered executable in cygwin causing which
17021 # to not find them
17022 if test "x$new_path" = x \
17023 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17024 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17025 new_path=`$CYGPATH -u "$path"`
17026 fi
17027 if test "x$new_path" = x; then
17028 # It's still not found. Now this is an unrecoverable error.
17029 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5
17030 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;}
17031 has_space=`$ECHO "$complete" | $GREP " "`
17032 if test "x$has_space" != x; then
17033 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17034 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17035 fi
17036 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5
17037 fi
17038 fi
17039
17040 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17041 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17042 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17043 # "foo.exe" is OK but "foo" is an error.
17240
17241 # Now join together the path and the arguments once again
17242 if test "x$arguments" != xEOL; then
17243 new_complete="$new_path ${arguments% *}"
17244 else
17245 new_complete="$new_path"
17246 fi
17247
17248 if test "x$complete" != "x$new_complete"; then
17249 BUILD_CC="$new_complete"
17250 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CC to \"$new_complete\"" >&5
17251 $as_echo "$as_me: Rewriting BUILD_CC to \"$new_complete\"" >&6;}
17252 fi
17253
17254 for ac_prog in cl CC g++
17255 do
17256 # Extract the first word of "$ac_prog", so it can be a program name with args.
17257 set dummy $ac_prog; ac_word=$2
17258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17259 $as_echo_n "checking for $ac_word... " >&6; }
17260 if test "${ac_cv_path_BUILD_CXX+set}" = set; then :
17261 $as_echo_n "(cached) " >&6
17262 else
17263 case $BUILD_CXX in
17264 [\\/]* | ?:[\\/]*)
17265 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path.
17266 ;;
17267 *)
17268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17269 for as_dir in $PATH
17270 do
17271 IFS=$as_save_IFS
17272 test -z "$as_dir" && as_dir=.
17273 for ac_exec_ext in '' $ac_executable_extensions; do
17274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17275 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext"
17276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17277 break 2
17278 fi
17279 done
17280 done
17298
17299
17300 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17301
17302 # First separate the path from the arguments. This will split at the first
17303 # space.
17304 complete="$BUILD_CXX"
17305 path="${complete%% *}"
17306 tmp="$complete EOL"
17307 arguments="${tmp#* }"
17308
17309 # Input might be given as Windows format, start by converting to
17310 # unix format.
17311 new_path=`$CYGPATH -u "$path"`
17312
17313 # Now try to locate executable using which
17314 new_path=`$WHICH "$new_path" 2> /dev/null`
17315 # bat and cmd files are not always considered executable in cygwin causing which
17316 # to not find them
17317 if test "x$new_path" = x \
17318 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17319 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17320 new_path=`$CYGPATH -u "$path"`
17321 fi
17322 if test "x$new_path" = x; then
17323 # Oops. Which didn't find the executable.
17324 # The splitting of arguments from the executable at a space might have been incorrect,
17325 # since paths with space are more likely in Windows. Give it another try with the whole
17326 # argument.
17327 path="$complete"
17328 arguments="EOL"
17329 new_path=`$CYGPATH -u "$path"`
17330 new_path=`$WHICH "$new_path" 2> /dev/null`
17331 # bat and cmd files are not always considered executable in cygwin causing which
17332 # to not find them
17333 if test "x$new_path" = x \
17334 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17335 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17336 new_path=`$CYGPATH -u "$path"`
17337 fi
17338 if test "x$new_path" = x; then
17339 # It's still not found. Now this is an unrecoverable error.
17340 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5
17341 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;}
17342 has_space=`$ECHO "$complete" | $GREP " "`
17343 if test "x$has_space" != x; then
17344 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17345 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17346 fi
17347 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5
17348 fi
17349 fi
17350
17351 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17352 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17353 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17354 # "foo.exe" is OK but "foo" is an error.
17549 fi
17550 fi
17551
17552 # Now join together the path and the arguments once again
17553 if test "x$arguments" != xEOL; then
17554 new_complete="$new_path ${arguments% *}"
17555 else
17556 new_complete="$new_path"
17557 fi
17558
17559 if test "x$complete" != "x$new_complete"; then
17560 BUILD_CXX="$new_complete"
17561 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CXX to \"$new_complete\"" >&5
17562 $as_echo "$as_me: Rewriting BUILD_CXX to \"$new_complete\"" >&6;}
17563 fi
17564
17565 # Extract the first word of "ld", so it can be a program name with args.
17566 set dummy ld; ac_word=$2
17567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17568 $as_echo_n "checking for $ac_word... " >&6; }
17569 if test "${ac_cv_path_BUILD_LD+set}" = set; then :
17570 $as_echo_n "(cached) " >&6
17571 else
17572 case $BUILD_LD in
17573 [\\/]* | ?:[\\/]*)
17574 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path.
17575 ;;
17576 *)
17577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17578 for as_dir in $PATH
17579 do
17580 IFS=$as_save_IFS
17581 test -z "$as_dir" && as_dir=.
17582 for ac_exec_ext in '' $ac_executable_extensions; do
17583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17584 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext"
17585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17586 break 2
17587 fi
17588 done
17589 done
17604
17605
17606 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17607
17608 # First separate the path from the arguments. This will split at the first
17609 # space.
17610 complete="$BUILD_LD"
17611 path="${complete%% *}"
17612 tmp="$complete EOL"
17613 arguments="${tmp#* }"
17614
17615 # Input might be given as Windows format, start by converting to
17616 # unix format.
17617 new_path=`$CYGPATH -u "$path"`
17618
17619 # Now try to locate executable using which
17620 new_path=`$WHICH "$new_path" 2> /dev/null`
17621 # bat and cmd files are not always considered executable in cygwin causing which
17622 # to not find them
17623 if test "x$new_path" = x \
17624 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17625 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17626 new_path=`$CYGPATH -u "$path"`
17627 fi
17628 if test "x$new_path" = x; then
17629 # Oops. Which didn't find the executable.
17630 # The splitting of arguments from the executable at a space might have been incorrect,
17631 # since paths with space are more likely in Windows. Give it another try with the whole
17632 # argument.
17633 path="$complete"
17634 arguments="EOL"
17635 new_path=`$CYGPATH -u "$path"`
17636 new_path=`$WHICH "$new_path" 2> /dev/null`
17637 # bat and cmd files are not always considered executable in cygwin causing which
17638 # to not find them
17639 if test "x$new_path" = x \
17640 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17641 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17642 new_path=`$CYGPATH -u "$path"`
17643 fi
17644 if test "x$new_path" = x; then
17645 # It's still not found. Now this is an unrecoverable error.
17646 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5
17647 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;}
17648 has_space=`$ECHO "$complete" | $GREP " "`
17649 if test "x$has_space" != x; then
17650 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17651 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17652 fi
17653 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5
17654 fi
17655 fi
17656
17657 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17658 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17659 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17660 # "foo.exe" is OK but "foo" is an error.
18061 COMPILER_CHECK_LIST="cl gcc"
18062 else
18063 COMPILER_CHECK_LIST="cl cc gcc"
18064 fi
18065
18066
18067 COMPILER_NAME=C
18068
18069 CC=
18070 # If TOOLS_DIR is set, check for all compiler names in there first
18071 # before checking the rest of the PATH.
18072 if test -n "$TOOLS_DIR"; then
18073 PATH_save="$PATH"
18074 PATH="$TOOLS_DIR"
18075 for ac_prog in $COMPILER_CHECK_LIST
18076 do
18077 # Extract the first word of "$ac_prog", so it can be a program name with args.
18078 set dummy $ac_prog; ac_word=$2
18079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18080 $as_echo_n "checking for $ac_word... " >&6; }
18081 if test "${ac_cv_path_TOOLS_DIR_CC+set}" = set; then :
18082 $as_echo_n "(cached) " >&6
18083 else
18084 case $TOOLS_DIR_CC in
18085 [\\/]* | ?:[\\/]*)
18086 ac_cv_path_TOOLS_DIR_CC="$TOOLS_DIR_CC" # Let the user override the test with a path.
18087 ;;
18088 *)
18089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18090 for as_dir in $PATH
18091 do
18092 IFS=$as_save_IFS
18093 test -z "$as_dir" && as_dir=.
18094 for ac_exec_ext in '' $ac_executable_extensions; do
18095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18096 ac_cv_path_TOOLS_DIR_CC="$as_dir/$ac_word$ac_exec_ext"
18097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18098 break 2
18099 fi
18100 done
18101 done
18113 $as_echo "no" >&6; }
18114 fi
18115
18116
18117 test -n "$TOOLS_DIR_CC" && break
18118 done
18119
18120 CC=$TOOLS_DIR_CC
18121 PATH="$PATH_save"
18122 fi
18123
18124 # AC_PATH_PROGS can't be run multiple times with the same variable,
18125 # so create a new name for this run.
18126 if test "x$CC" = x; then
18127 for ac_prog in $COMPILER_CHECK_LIST
18128 do
18129 # Extract the first word of "$ac_prog", so it can be a program name with args.
18130 set dummy $ac_prog; ac_word=$2
18131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18132 $as_echo_n "checking for $ac_word... " >&6; }
18133 if test "${ac_cv_path_POTENTIAL_CC+set}" = set; then :
18134 $as_echo_n "(cached) " >&6
18135 else
18136 case $POTENTIAL_CC in
18137 [\\/]* | ?:[\\/]*)
18138 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path.
18139 ;;
18140 *)
18141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18142 for as_dir in $PATH
18143 do
18144 IFS=$as_save_IFS
18145 test -z "$as_dir" && as_dir=.
18146 for ac_exec_ext in '' $ac_executable_extensions; do
18147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18148 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext"
18149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18150 break 2
18151 fi
18152 done
18153 done
18202 fi
18203
18204 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18205
18206 # First separate the path from the arguments. This will split at the first
18207 # space.
18208 complete="$CC"
18209 path="${complete%% *}"
18210 tmp="$complete EOL"
18211 arguments="${tmp#* }"
18212
18213 # Input might be given as Windows format, start by converting to
18214 # unix format.
18215 new_path=`$CYGPATH -u "$path"`
18216
18217 # Now try to locate executable using which
18218 new_path=`$WHICH "$new_path" 2> /dev/null`
18219 # bat and cmd files are not always considered executable in cygwin causing which
18220 # to not find them
18221 if test "x$new_path" = x \
18222 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18223 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18224 new_path=`$CYGPATH -u "$path"`
18225 fi
18226 if test "x$new_path" = x; then
18227 # Oops. Which didn't find the executable.
18228 # The splitting of arguments from the executable at a space might have been incorrect,
18229 # since paths with space are more likely in Windows. Give it another try with the whole
18230 # argument.
18231 path="$complete"
18232 arguments="EOL"
18233 new_path=`$CYGPATH -u "$path"`
18234 new_path=`$WHICH "$new_path" 2> /dev/null`
18235 # bat and cmd files are not always considered executable in cygwin causing which
18236 # to not find them
18237 if test "x$new_path" = x \
18238 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18239 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18240 new_path=`$CYGPATH -u "$path"`
18241 fi
18242 if test "x$new_path" = x; then
18243 # It's still not found. Now this is an unrecoverable error.
18244 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5
18245 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;}
18246 has_space=`$ECHO "$complete" | $GREP " "`
18247 if test "x$has_space" != x; then
18248 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18249 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18250 fi
18251 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5
18252 fi
18253 fi
18254
18255 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18256 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18257 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18258 # "foo.exe" is OK but "foo" is an error.
18526 if test "x$COMPILER_BASENAME" = "xccache"; then
18527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5
18528 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; }
18529 # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache.
18530 # We want to control ccache invocation ourselves, so ignore this cc and try
18531 # searching again.
18532
18533 # Remove the path to the fake ccache cc from the PATH
18534 RETRY_COMPILER_SAVED_PATH="$PATH"
18535 COMPILER_DIRNAME=`$DIRNAME $CC`
18536 PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`"
18537
18538 # Try again looking for our compiler
18539 if test -n "$ac_tool_prefix"; then
18540 for ac_prog in $COMPILER_CHECK_LIST
18541 do
18542 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18543 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18545 $as_echo_n "checking for $ac_word... " >&6; }
18546 if test "${ac_cv_prog_PROPER_COMPILER_CC+set}" = set; then :
18547 $as_echo_n "(cached) " >&6
18548 else
18549 if test -n "$PROPER_COMPILER_CC"; then
18550 ac_cv_prog_PROPER_COMPILER_CC="$PROPER_COMPILER_CC" # Let the user override the test.
18551 else
18552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18553 for as_dir in $PATH
18554 do
18555 IFS=$as_save_IFS
18556 test -z "$as_dir" && as_dir=.
18557 for ac_exec_ext in '' $ac_executable_extensions; do
18558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18559 ac_cv_prog_PROPER_COMPILER_CC="$ac_tool_prefix$ac_prog"
18560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18561 break 2
18562 fi
18563 done
18564 done
18565 IFS=$as_save_IFS
18566
18570 if test -n "$PROPER_COMPILER_CC"; then
18571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5
18572 $as_echo "$PROPER_COMPILER_CC" >&6; }
18573 else
18574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18575 $as_echo "no" >&6; }
18576 fi
18577
18578
18579 test -n "$PROPER_COMPILER_CC" && break
18580 done
18581 fi
18582 if test -z "$PROPER_COMPILER_CC"; then
18583 ac_ct_PROPER_COMPILER_CC=$PROPER_COMPILER_CC
18584 for ac_prog in $COMPILER_CHECK_LIST
18585 do
18586 # Extract the first word of "$ac_prog", so it can be a program name with args.
18587 set dummy $ac_prog; ac_word=$2
18588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18589 $as_echo_n "checking for $ac_word... " >&6; }
18590 if test "${ac_cv_prog_ac_ct_PROPER_COMPILER_CC+set}" = set; then :
18591 $as_echo_n "(cached) " >&6
18592 else
18593 if test -n "$ac_ct_PROPER_COMPILER_CC"; then
18594 ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_ct_PROPER_COMPILER_CC" # Let the user override the test.
18595 else
18596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18597 for as_dir in $PATH
18598 do
18599 IFS=$as_save_IFS
18600 test -z "$as_dir" && as_dir=.
18601 for ac_exec_ext in '' $ac_executable_extensions; do
18602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18603 ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_prog"
18604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18605 break 2
18606 fi
18607 done
18608 done
18609 IFS=$as_save_IFS
18610
18638
18639
18640 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18641
18642 # First separate the path from the arguments. This will split at the first
18643 # space.
18644 complete="$PROPER_COMPILER_CC"
18645 path="${complete%% *}"
18646 tmp="$complete EOL"
18647 arguments="${tmp#* }"
18648
18649 # Input might be given as Windows format, start by converting to
18650 # unix format.
18651 new_path=`$CYGPATH -u "$path"`
18652
18653 # Now try to locate executable using which
18654 new_path=`$WHICH "$new_path" 2> /dev/null`
18655 # bat and cmd files are not always considered executable in cygwin causing which
18656 # to not find them
18657 if test "x$new_path" = x \
18658 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18659 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18660 new_path=`$CYGPATH -u "$path"`
18661 fi
18662 if test "x$new_path" = x; then
18663 # Oops. Which didn't find the executable.
18664 # The splitting of arguments from the executable at a space might have been incorrect,
18665 # since paths with space are more likely in Windows. Give it another try with the whole
18666 # argument.
18667 path="$complete"
18668 arguments="EOL"
18669 new_path=`$CYGPATH -u "$path"`
18670 new_path=`$WHICH "$new_path" 2> /dev/null`
18671 # bat and cmd files are not always considered executable in cygwin causing which
18672 # to not find them
18673 if test "x$new_path" = x \
18674 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18675 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18676 new_path=`$CYGPATH -u "$path"`
18677 fi
18678 if test "x$new_path" = x; then
18679 # It's still not found. Now this is an unrecoverable error.
18680 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5
18681 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;}
18682 has_space=`$ECHO "$complete" | $GREP " "`
18683 if test "x$has_space" != x; then
18684 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18685 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18686 fi
18687 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5
18688 fi
18689 fi
18690
18691 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18692 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18693 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18694 # "foo.exe" is OK but "foo" is an error.
19020 # This sets CC_VENDOR or CXX_VENDOR. (This comment is a grep marker)
19021 CC_VENDOR="$COMPILER_VENDOR"
19022
19023 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $COMPILER_VENDOR $COMPILER_NAME compiler version $COMPILER_VERSION (located at $COMPILER)" >&5
19024 $as_echo "$as_me: Using $COMPILER_VENDOR $COMPILER_NAME compiler version $COMPILER_VERSION (located at $COMPILER)" >&6;}
19025
19026
19027 # Now that we have resolved CC ourself, let autoconf have it's go at it
19028 ac_ext=c
19029 ac_cpp='$CPP $CPPFLAGS'
19030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19033 if test -n "$ac_tool_prefix"; then
19034 for ac_prog in $CC
19035 do
19036 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19037 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19039 $as_echo_n "checking for $ac_word... " >&6; }
19040 if test "${ac_cv_prog_CC+set}" = set; then :
19041 $as_echo_n "(cached) " >&6
19042 else
19043 if test -n "$CC"; then
19044 ac_cv_prog_CC="$CC" # Let the user override the test.
19045 else
19046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19047 for as_dir in $PATH
19048 do
19049 IFS=$as_save_IFS
19050 test -z "$as_dir" && as_dir=.
19051 for ac_exec_ext in '' $ac_executable_extensions; do
19052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19053 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19055 break 2
19056 fi
19057 done
19058 done
19059 IFS=$as_save_IFS
19060
19064 if test -n "$CC"; then
19065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
19066 $as_echo "$CC" >&6; }
19067 else
19068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19069 $as_echo "no" >&6; }
19070 fi
19071
19072
19073 test -n "$CC" && break
19074 done
19075 fi
19076 if test -z "$CC"; then
19077 ac_ct_CC=$CC
19078 for ac_prog in $CC
19079 do
19080 # Extract the first word of "$ac_prog", so it can be a program name with args.
19081 set dummy $ac_prog; ac_word=$2
19082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19083 $as_echo_n "checking for $ac_word... " >&6; }
19084 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
19085 $as_echo_n "(cached) " >&6
19086 else
19087 if test -n "$ac_ct_CC"; then
19088 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19089 else
19090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19091 for as_dir in $PATH
19092 do
19093 IFS=$as_save_IFS
19094 test -z "$as_dir" && as_dir=.
19095 for ac_exec_ext in '' $ac_executable_extensions; do
19096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19097 ac_cv_prog_ac_ct_CC="$ac_prog"
19098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19099 break 2
19100 fi
19101 done
19102 done
19103 IFS=$as_save_IFS
19104
19117 test -n "$ac_ct_CC" && break
19118 done
19119
19120 if test "x$ac_ct_CC" = x; then
19121 CC=""
19122 else
19123 case $cross_compiling:$ac_tool_warned in
19124 yes:)
19125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19126 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19127 ac_tool_warned=yes ;;
19128 esac
19129 CC=$ac_ct_CC
19130 fi
19131 fi
19132
19133
19134 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19135 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19136 as_fn_error $? "no acceptable C compiler found in \$PATH
19137 See \`config.log' for more details" "$LINENO" 5 ; }
19138
19139 # Provide some information about the compiler.
19140 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
19141 set X $ac_compile
19142 ac_compiler=$2
19143 for ac_option in --version -v -V -qversion; do
19144 { { ac_try="$ac_compiler $ac_option >&5"
19145 case "(($ac_try" in
19146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19147 *) ac_try_echo=$ac_try;;
19148 esac
19149 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19150 $as_echo "$ac_try_echo"; } >&5
19151 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
19152 ac_status=$?
19153 if test -s conftest.err; then
19154 sed '10a\
19155 ... rest of stderr output deleted ...
19156 10q' conftest.err >conftest.er1
19157 cat conftest.er1 >&5
19232 # actually working.
19233 break;;
19234 * )
19235 break;;
19236 esac
19237 done
19238 test "$ac_cv_exeext" = no && ac_cv_exeext=
19239
19240 else
19241 ac_file=''
19242 fi
19243 if test -z "$ac_file"; then :
19244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19245 $as_echo "no" >&6; }
19246 $as_echo "$as_me: failed program was:" >&5
19247 sed 's/^/| /' conftest.$ac_ext >&5
19248
19249 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19250 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19251 as_fn_error 77 "C compiler cannot create executables
19252 See \`config.log' for more details" "$LINENO" 5 ; }
19253 else
19254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19255 $as_echo "yes" >&6; }
19256 fi
19257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
19258 $as_echo_n "checking for C compiler default output file name... " >&6; }
19259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
19260 $as_echo "$ac_file" >&6; }
19261 ac_exeext=$ac_cv_exeext
19262
19263 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
19264 ac_clean_files=$ac_clean_files_save
19265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
19266 $as_echo_n "checking for suffix of executables... " >&6; }
19267 if { { ac_try="$ac_link"
19268 case "(($ac_try" in
19269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19270 *) ac_try_echo=$ac_try;;
19271 esac
19272 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19275 ac_status=$?
19276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19277 test $ac_status = 0; }; then :
19278 # If both `conftest.exe' and `conftest' are `present' (well, observable)
19279 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
19280 # work properly (i.e., refer to `conftest.exe'), while it won't with
19281 # `rm'.
19282 for ac_file in conftest.exe conftest conftest.*; do
19283 test -f "$ac_file" || continue
19284 case $ac_file in
19285 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
19286 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
19287 break;;
19288 * ) break;;
19289 esac
19290 done
19291 else
19292 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19293 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19294 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
19295 See \`config.log' for more details" "$LINENO" 5 ; }
19296 fi
19297 rm -f conftest conftest$ac_cv_exeext
19298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
19299 $as_echo "$ac_cv_exeext" >&6; }
19300
19301 rm -f conftest.$ac_ext
19302 EXEEXT=$ac_cv_exeext
19303 ac_exeext=$EXEEXT
19304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19305 /* end confdefs.h. */
19306 #include <stdio.h>
19307 int
19308 main ()
19309 {
19310 FILE *f = fopen ("conftest.out", "w");
19311 return ferror (f) || fclose (f) != 0;
19312
19313 ;
19314 return 0;
19315 }
19334 if { ac_try='./conftest$ac_cv_exeext'
19335 { { case "(($ac_try" in
19336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19337 *) ac_try_echo=$ac_try;;
19338 esac
19339 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19340 $as_echo "$ac_try_echo"; } >&5
19341 (eval "$ac_try") 2>&5
19342 ac_status=$?
19343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19344 test $ac_status = 0; }; }; then
19345 cross_compiling=no
19346 else
19347 if test "$cross_compiling" = maybe; then
19348 cross_compiling=yes
19349 else
19350 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19351 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19352 as_fn_error $? "cannot run C compiled programs.
19353 If you meant to cross compile, use \`--host'.
19354 See \`config.log' for more details" "$LINENO" 5 ; }
19355 fi
19356 fi
19357 fi
19358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
19359 $as_echo "$cross_compiling" >&6; }
19360
19361 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
19362 ac_clean_files=$ac_clean_files_save
19363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
19364 $as_echo_n "checking for suffix of object files... " >&6; }
19365 if test "${ac_cv_objext+set}" = set; then :
19366 $as_echo_n "(cached) " >&6
19367 else
19368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19369 /* end confdefs.h. */
19370
19371 int
19372 main ()
19373 {
19374
19375 ;
19376 return 0;
19377 }
19378 _ACEOF
19379 rm -f conftest.o conftest.obj
19380 if { { ac_try="$ac_compile"
19381 case "(($ac_try" in
19382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19383 *) ac_try_echo=$ac_try;;
19384 esac
19385 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19386 $as_echo "$ac_try_echo"; } >&5
19387 (eval "$ac_compile") 2>&5
19388 ac_status=$?
19389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19390 test $ac_status = 0; }; then :
19391 for ac_file in conftest.o conftest.obj conftest.*; do
19392 test -f "$ac_file" || continue;
19393 case $ac_file in
19394 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
19395 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
19396 break;;
19397 esac
19398 done
19399 else
19400 $as_echo "$as_me: failed program was:" >&5
19401 sed 's/^/| /' conftest.$ac_ext >&5
19402
19403 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19404 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19405 as_fn_error $? "cannot compute suffix of object files: cannot compile
19406 See \`config.log' for more details" "$LINENO" 5 ; }
19407 fi
19408 rm -f conftest.$ac_cv_objext conftest.$ac_ext
19409 fi
19410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
19411 $as_echo "$ac_cv_objext" >&6; }
19412 OBJEXT=$ac_cv_objext
19413 ac_objext=$OBJEXT
19414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
19415 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
19416 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
19417 $as_echo_n "(cached) " >&6
19418 else
19419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19420 /* end confdefs.h. */
19421
19422 int
19423 main ()
19424 {
19425 #ifndef __GNUC__
19426 choke me
19427 #endif
19428
19429 ;
19430 return 0;
19431 }
19432 _ACEOF
19433 if ac_fn_c_try_compile "$LINENO"; then :
19434 ac_compiler_gnu=yes
19435 else
19436 ac_compiler_gnu=no
19437 fi
19438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19439 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19440
19441 fi
19442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
19443 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
19444 if test $ac_compiler_gnu = yes; then
19445 GCC=yes
19446 else
19447 GCC=
19448 fi
19449 ac_test_CFLAGS=${CFLAGS+set}
19450 ac_save_CFLAGS=$CFLAGS
19451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
19452 $as_echo_n "checking whether $CC accepts -g... " >&6; }
19453 if test "${ac_cv_prog_cc_g+set}" = set; then :
19454 $as_echo_n "(cached) " >&6
19455 else
19456 ac_save_c_werror_flag=$ac_c_werror_flag
19457 ac_c_werror_flag=yes
19458 ac_cv_prog_cc_g=no
19459 CFLAGS="-g"
19460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19461 /* end confdefs.h. */
19462
19463 int
19464 main ()
19465 {
19466
19467 ;
19468 return 0;
19469 }
19470 _ACEOF
19471 if ac_fn_c_try_compile "$LINENO"; then :
19472 ac_cv_prog_cc_g=yes
19473 else
19511 fi
19512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
19513 $as_echo "$ac_cv_prog_cc_g" >&6; }
19514 if test "$ac_test_CFLAGS" = set; then
19515 CFLAGS=$ac_save_CFLAGS
19516 elif test $ac_cv_prog_cc_g = yes; then
19517 if test "$GCC" = yes; then
19518 CFLAGS="-g -O2"
19519 else
19520 CFLAGS="-g"
19521 fi
19522 else
19523 if test "$GCC" = yes; then
19524 CFLAGS="-O2"
19525 else
19526 CFLAGS=
19527 fi
19528 fi
19529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
19530 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
19531 if test "${ac_cv_prog_cc_c89+set}" = set; then :
19532 $as_echo_n "(cached) " >&6
19533 else
19534 ac_cv_prog_cc_c89=no
19535 ac_save_CC=$CC
19536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19537 /* end confdefs.h. */
19538 #include <stdarg.h>
19539 #include <stdio.h>
19540 #include <sys/types.h>
19541 #include <sys/stat.h>
19542 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19543 struct buf { int x; };
19544 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19545 static char *e (p, i)
19546 char **p;
19547 int i;
19548 {
19549 return p[i];
19550 }
19551 static char *f (char * (*g) (char **, int), char **p, ...)
19630 # Do not probe for CC on MacOSX.
19631 COMPILER_CHECK_LIST="cl g++"
19632 else
19633 COMPILER_CHECK_LIST="cl CC g++"
19634 fi
19635
19636 COMPILER_NAME=C++
19637
19638 CXX=
19639 # If TOOLS_DIR is set, check for all compiler names in there first
19640 # before checking the rest of the PATH.
19641 if test -n "$TOOLS_DIR"; then
19642 PATH_save="$PATH"
19643 PATH="$TOOLS_DIR"
19644 for ac_prog in $COMPILER_CHECK_LIST
19645 do
19646 # Extract the first word of "$ac_prog", so it can be a program name with args.
19647 set dummy $ac_prog; ac_word=$2
19648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19649 $as_echo_n "checking for $ac_word... " >&6; }
19650 if test "${ac_cv_path_TOOLS_DIR_CXX+set}" = set; then :
19651 $as_echo_n "(cached) " >&6
19652 else
19653 case $TOOLS_DIR_CXX in
19654 [\\/]* | ?:[\\/]*)
19655 ac_cv_path_TOOLS_DIR_CXX="$TOOLS_DIR_CXX" # Let the user override the test with a path.
19656 ;;
19657 *)
19658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19659 for as_dir in $PATH
19660 do
19661 IFS=$as_save_IFS
19662 test -z "$as_dir" && as_dir=.
19663 for ac_exec_ext in '' $ac_executable_extensions; do
19664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19665 ac_cv_path_TOOLS_DIR_CXX="$as_dir/$ac_word$ac_exec_ext"
19666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19667 break 2
19668 fi
19669 done
19670 done
19682 $as_echo "no" >&6; }
19683 fi
19684
19685
19686 test -n "$TOOLS_DIR_CXX" && break
19687 done
19688
19689 CXX=$TOOLS_DIR_CXX
19690 PATH="$PATH_save"
19691 fi
19692
19693 # AC_PATH_PROGS can't be run multiple times with the same variable,
19694 # so create a new name for this run.
19695 if test "x$CXX" = x; then
19696 for ac_prog in $COMPILER_CHECK_LIST
19697 do
19698 # Extract the first word of "$ac_prog", so it can be a program name with args.
19699 set dummy $ac_prog; ac_word=$2
19700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19701 $as_echo_n "checking for $ac_word... " >&6; }
19702 if test "${ac_cv_path_POTENTIAL_CXX+set}" = set; then :
19703 $as_echo_n "(cached) " >&6
19704 else
19705 case $POTENTIAL_CXX in
19706 [\\/]* | ?:[\\/]*)
19707 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path.
19708 ;;
19709 *)
19710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19711 for as_dir in $PATH
19712 do
19713 IFS=$as_save_IFS
19714 test -z "$as_dir" && as_dir=.
19715 for ac_exec_ext in '' $ac_executable_extensions; do
19716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19717 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext"
19718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19719 break 2
19720 fi
19721 done
19722 done
19771 fi
19772
19773 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19774
19775 # First separate the path from the arguments. This will split at the first
19776 # space.
19777 complete="$CXX"
19778 path="${complete%% *}"
19779 tmp="$complete EOL"
19780 arguments="${tmp#* }"
19781
19782 # Input might be given as Windows format, start by converting to
19783 # unix format.
19784 new_path=`$CYGPATH -u "$path"`
19785
19786 # Now try to locate executable using which
19787 new_path=`$WHICH "$new_path" 2> /dev/null`
19788 # bat and cmd files are not always considered executable in cygwin causing which
19789 # to not find them
19790 if test "x$new_path" = x \
19791 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19792 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19793 new_path=`$CYGPATH -u "$path"`
19794 fi
19795 if test "x$new_path" = x; then
19796 # Oops. Which didn't find the executable.
19797 # The splitting of arguments from the executable at a space might have been incorrect,
19798 # since paths with space are more likely in Windows. Give it another try with the whole
19799 # argument.
19800 path="$complete"
19801 arguments="EOL"
19802 new_path=`$CYGPATH -u "$path"`
19803 new_path=`$WHICH "$new_path" 2> /dev/null`
19804 # bat and cmd files are not always considered executable in cygwin causing which
19805 # to not find them
19806 if test "x$new_path" = x \
19807 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19808 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19809 new_path=`$CYGPATH -u "$path"`
19810 fi
19811 if test "x$new_path" = x; then
19812 # It's still not found. Now this is an unrecoverable error.
19813 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5
19814 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;}
19815 has_space=`$ECHO "$complete" | $GREP " "`
19816 if test "x$has_space" != x; then
19817 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19818 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19819 fi
19820 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5
19821 fi
19822 fi
19823
19824 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19825 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19826 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19827 # "foo.exe" is OK but "foo" is an error.
20095 if test "x$COMPILER_BASENAME" = "xccache"; then
20096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5
20097 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; }
20098 # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache.
20099 # We want to control ccache invocation ourselves, so ignore this cc and try
20100 # searching again.
20101
20102 # Remove the path to the fake ccache cc from the PATH
20103 RETRY_COMPILER_SAVED_PATH="$PATH"
20104 COMPILER_DIRNAME=`$DIRNAME $CXX`
20105 PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`"
20106
20107 # Try again looking for our compiler
20108 if test -n "$ac_tool_prefix"; then
20109 for ac_prog in $COMPILER_CHECK_LIST
20110 do
20111 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20112 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20114 $as_echo_n "checking for $ac_word... " >&6; }
20115 if test "${ac_cv_prog_PROPER_COMPILER_CXX+set}" = set; then :
20116 $as_echo_n "(cached) " >&6
20117 else
20118 if test -n "$PROPER_COMPILER_CXX"; then
20119 ac_cv_prog_PROPER_COMPILER_CXX="$PROPER_COMPILER_CXX" # Let the user override the test.
20120 else
20121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20122 for as_dir in $PATH
20123 do
20124 IFS=$as_save_IFS
20125 test -z "$as_dir" && as_dir=.
20126 for ac_exec_ext in '' $ac_executable_extensions; do
20127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20128 ac_cv_prog_PROPER_COMPILER_CXX="$ac_tool_prefix$ac_prog"
20129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20130 break 2
20131 fi
20132 done
20133 done
20134 IFS=$as_save_IFS
20135
20139 if test -n "$PROPER_COMPILER_CXX"; then
20140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5
20141 $as_echo "$PROPER_COMPILER_CXX" >&6; }
20142 else
20143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20144 $as_echo "no" >&6; }
20145 fi
20146
20147
20148 test -n "$PROPER_COMPILER_CXX" && break
20149 done
20150 fi
20151 if test -z "$PROPER_COMPILER_CXX"; then
20152 ac_ct_PROPER_COMPILER_CXX=$PROPER_COMPILER_CXX
20153 for ac_prog in $COMPILER_CHECK_LIST
20154 do
20155 # Extract the first word of "$ac_prog", so it can be a program name with args.
20156 set dummy $ac_prog; ac_word=$2
20157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20158 $as_echo_n "checking for $ac_word... " >&6; }
20159 if test "${ac_cv_prog_ac_ct_PROPER_COMPILER_CXX+set}" = set; then :
20160 $as_echo_n "(cached) " >&6
20161 else
20162 if test -n "$ac_ct_PROPER_COMPILER_CXX"; then
20163 ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_ct_PROPER_COMPILER_CXX" # Let the user override the test.
20164 else
20165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20166 for as_dir in $PATH
20167 do
20168 IFS=$as_save_IFS
20169 test -z "$as_dir" && as_dir=.
20170 for ac_exec_ext in '' $ac_executable_extensions; do
20171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20172 ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_prog"
20173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20174 break 2
20175 fi
20176 done
20177 done
20178 IFS=$as_save_IFS
20179
20207
20208
20209 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20210
20211 # First separate the path from the arguments. This will split at the first
20212 # space.
20213 complete="$PROPER_COMPILER_CXX"
20214 path="${complete%% *}"
20215 tmp="$complete EOL"
20216 arguments="${tmp#* }"
20217
20218 # Input might be given as Windows format, start by converting to
20219 # unix format.
20220 new_path=`$CYGPATH -u "$path"`
20221
20222 # Now try to locate executable using which
20223 new_path=`$WHICH "$new_path" 2> /dev/null`
20224 # bat and cmd files are not always considered executable in cygwin causing which
20225 # to not find them
20226 if test "x$new_path" = x \
20227 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20228 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20229 new_path=`$CYGPATH -u "$path"`
20230 fi
20231 if test "x$new_path" = x; then
20232 # Oops. Which didn't find the executable.
20233 # The splitting of arguments from the executable at a space might have been incorrect,
20234 # since paths with space are more likely in Windows. Give it another try with the whole
20235 # argument.
20236 path="$complete"
20237 arguments="EOL"
20238 new_path=`$CYGPATH -u "$path"`
20239 new_path=`$WHICH "$new_path" 2> /dev/null`
20240 # bat and cmd files are not always considered executable in cygwin causing which
20241 # to not find them
20242 if test "x$new_path" = x \
20243 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20244 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20245 new_path=`$CYGPATH -u "$path"`
20246 fi
20247 if test "x$new_path" = x; then
20248 # It's still not found. Now this is an unrecoverable error.
20249 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5
20250 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;}
20251 has_space=`$ECHO "$complete" | $GREP " "`
20252 if test "x$has_space" != x; then
20253 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20254 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20255 fi
20256 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5
20257 fi
20258 fi
20259
20260 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20261 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20262 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20263 # "foo.exe" is OK but "foo" is an error.
20593 $as_echo "$as_me: Using $COMPILER_VENDOR $COMPILER_NAME compiler version $COMPILER_VERSION (located at $COMPILER)" >&6;}
20594
20595
20596 # Now that we have resolved CXX ourself, let autoconf have it's go at it
20597 ac_ext=cpp
20598 ac_cpp='$CXXCPP $CPPFLAGS'
20599 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20600 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20601 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20602 if test -z "$CXX"; then
20603 if test -n "$CCC"; then
20604 CXX=$CCC
20605 else
20606 if test -n "$ac_tool_prefix"; then
20607 for ac_prog in $CXX
20608 do
20609 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20610 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20612 $as_echo_n "checking for $ac_word... " >&6; }
20613 if test "${ac_cv_prog_CXX+set}" = set; then :
20614 $as_echo_n "(cached) " >&6
20615 else
20616 if test -n "$CXX"; then
20617 ac_cv_prog_CXX="$CXX" # Let the user override the test.
20618 else
20619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20620 for as_dir in $PATH
20621 do
20622 IFS=$as_save_IFS
20623 test -z "$as_dir" && as_dir=.
20624 for ac_exec_ext in '' $ac_executable_extensions; do
20625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20626 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
20627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20628 break 2
20629 fi
20630 done
20631 done
20632 IFS=$as_save_IFS
20633
20637 if test -n "$CXX"; then
20638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
20639 $as_echo "$CXX" >&6; }
20640 else
20641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20642 $as_echo "no" >&6; }
20643 fi
20644
20645
20646 test -n "$CXX" && break
20647 done
20648 fi
20649 if test -z "$CXX"; then
20650 ac_ct_CXX=$CXX
20651 for ac_prog in $CXX
20652 do
20653 # Extract the first word of "$ac_prog", so it can be a program name with args.
20654 set dummy $ac_prog; ac_word=$2
20655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20656 $as_echo_n "checking for $ac_word... " >&6; }
20657 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
20658 $as_echo_n "(cached) " >&6
20659 else
20660 if test -n "$ac_ct_CXX"; then
20661 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
20662 else
20663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20664 for as_dir in $PATH
20665 do
20666 IFS=$as_save_IFS
20667 test -z "$as_dir" && as_dir=.
20668 for ac_exec_ext in '' $ac_executable_extensions; do
20669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20670 ac_cv_prog_ac_ct_CXX="$ac_prog"
20671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20672 break 2
20673 fi
20674 done
20675 done
20676 IFS=$as_save_IFS
20677
20715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20716 *) ac_try_echo=$ac_try;;
20717 esac
20718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
20719 $as_echo "$ac_try_echo"; } >&5
20720 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
20721 ac_status=$?
20722 if test -s conftest.err; then
20723 sed '10a\
20724 ... rest of stderr output deleted ...
20725 10q' conftest.err >conftest.er1
20726 cat conftest.er1 >&5
20727 fi
20728 rm -f conftest.er1 conftest.err
20729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20730 test $ac_status = 0; }
20731 done
20732
20733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
20734 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
20735 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
20736 $as_echo_n "(cached) " >&6
20737 else
20738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20739 /* end confdefs.h. */
20740
20741 int
20742 main ()
20743 {
20744 #ifndef __GNUC__
20745 choke me
20746 #endif
20747
20748 ;
20749 return 0;
20750 }
20751 _ACEOF
20752 if ac_fn_cxx_try_compile "$LINENO"; then :
20753 ac_compiler_gnu=yes
20754 else
20755 ac_compiler_gnu=no
20756 fi
20757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20758 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
20759
20760 fi
20761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
20762 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
20763 if test $ac_compiler_gnu = yes; then
20764 GXX=yes
20765 else
20766 GXX=
20767 fi
20768 ac_test_CXXFLAGS=${CXXFLAGS+set}
20769 ac_save_CXXFLAGS=$CXXFLAGS
20770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
20771 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
20772 if test "${ac_cv_prog_cxx_g+set}" = set; then :
20773 $as_echo_n "(cached) " >&6
20774 else
20775 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
20776 ac_cxx_werror_flag=yes
20777 ac_cv_prog_cxx_g=no
20778 CXXFLAGS="-g"
20779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20780 /* end confdefs.h. */
20781
20782 int
20783 main ()
20784 {
20785
20786 ;
20787 return 0;
20788 }
20789 _ACEOF
20790 if ac_fn_cxx_try_compile "$LINENO"; then :
20791 ac_cv_prog_cxx_g=yes
20792 else
20850 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20851 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20852 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20853
20854
20855 ### Locate other tools
20856
20857 if test "x$OPENJDK_TARGET_OS" = xmacosx; then
20858 ac_ext=m
20859 ac_cpp='$OBJCPP $CPPFLAGS'
20860 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20861 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20862 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
20863 if test -n "$ac_tool_prefix"; then
20864 for ac_prog in gcc objcc objc cc CC
20865 do
20866 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20867 set dummy $ac_tool_prefix$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 test "${ac_cv_prog_OBJC+set}" = set; then :
20871 $as_echo_n "(cached) " >&6
20872 else
20873 if test -n "$OBJC"; then
20874 ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
20875 else
20876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20877 for as_dir in $PATH
20878 do
20879 IFS=$as_save_IFS
20880 test -z "$as_dir" && as_dir=.
20881 for ac_exec_ext in '' $ac_executable_extensions; do
20882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20883 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
20884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20885 break 2
20886 fi
20887 done
20888 done
20889 IFS=$as_save_IFS
20890
20894 if test -n "$OBJC"; then
20895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5
20896 $as_echo "$OBJC" >&6; }
20897 else
20898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20899 $as_echo "no" >&6; }
20900 fi
20901
20902
20903 test -n "$OBJC" && break
20904 done
20905 fi
20906 if test -z "$OBJC"; then
20907 ac_ct_OBJC=$OBJC
20908 for ac_prog in gcc objcc objc cc CC
20909 do
20910 # Extract the first word of "$ac_prog", so it can be a program name with args.
20911 set dummy $ac_prog; ac_word=$2
20912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20913 $as_echo_n "checking for $ac_word... " >&6; }
20914 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then :
20915 $as_echo_n "(cached) " >&6
20916 else
20917 if test -n "$ac_ct_OBJC"; then
20918 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
20919 else
20920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20921 for as_dir in $PATH
20922 do
20923 IFS=$as_save_IFS
20924 test -z "$as_dir" && as_dir=.
20925 for ac_exec_ext in '' $ac_executable_extensions; do
20926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20927 ac_cv_prog_ac_ct_OBJC="$ac_prog"
20928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20929 break 2
20930 fi
20931 done
20932 done
20933 IFS=$as_save_IFS
20934
20970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20971 *) ac_try_echo=$ac_try;;
20972 esac
20973 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
20974 $as_echo "$ac_try_echo"; } >&5
20975 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
20976 ac_status=$?
20977 if test -s conftest.err; then
20978 sed '10a\
20979 ... rest of stderr output deleted ...
20980 10q' conftest.err >conftest.er1
20981 cat conftest.er1 >&5
20982 fi
20983 rm -f conftest.er1 conftest.err
20984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20985 test $ac_status = 0; }
20986 done
20987
20988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C compiler" >&5
20989 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }
20990 if test "${ac_cv_objc_compiler_gnu+set}" = set; then :
20991 $as_echo_n "(cached) " >&6
20992 else
20993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20994 /* end confdefs.h. */
20995
20996 int
20997 main ()
20998 {
20999 #ifndef __GNUC__
21000 choke me
21001 #endif
21002
21003 ;
21004 return 0;
21005 }
21006 _ACEOF
21007 if ac_fn_objc_try_compile "$LINENO"; then :
21008 ac_compiler_gnu=yes
21009 else
21010 ac_compiler_gnu=no
21011 fi
21012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21013 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
21014
21015 fi
21016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5
21017 $as_echo "$ac_cv_objc_compiler_gnu" >&6; }
21018 if test $ac_compiler_gnu = yes; then
21019 GOBJC=yes
21020 else
21021 GOBJC=
21022 fi
21023 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
21024 ac_save_OBJCFLAGS=$OBJCFLAGS
21025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5
21026 $as_echo_n "checking whether $OBJC accepts -g... " >&6; }
21027 if test "${ac_cv_prog_objc_g+set}" = set; then :
21028 $as_echo_n "(cached) " >&6
21029 else
21030 ac_save_objc_werror_flag=$ac_objc_werror_flag
21031 ac_objc_werror_flag=yes
21032 ac_cv_prog_objc_g=no
21033 OBJCFLAGS="-g"
21034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21035 /* end confdefs.h. */
21036
21037 int
21038 main ()
21039 {
21040
21041 ;
21042 return 0;
21043 }
21044 _ACEOF
21045 if ac_fn_objc_try_compile "$LINENO"; then :
21046 ac_cv_prog_objc_g=yes
21047 else
21108
21109
21110 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21111
21112 # First separate the path from the arguments. This will split at the first
21113 # space.
21114 complete="$OBJC"
21115 path="${complete%% *}"
21116 tmp="$complete EOL"
21117 arguments="${tmp#* }"
21118
21119 # Input might be given as Windows format, start by converting to
21120 # unix format.
21121 new_path=`$CYGPATH -u "$path"`
21122
21123 # Now try to locate executable using which
21124 new_path=`$WHICH "$new_path" 2> /dev/null`
21125 # bat and cmd files are not always considered executable in cygwin causing which
21126 # to not find them
21127 if test "x$new_path" = x \
21128 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
21129 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
21130 new_path=`$CYGPATH -u "$path"`
21131 fi
21132 if test "x$new_path" = x; then
21133 # Oops. Which didn't find the executable.
21134 # The splitting of arguments from the executable at a space might have been incorrect,
21135 # since paths with space are more likely in Windows. Give it another try with the whole
21136 # argument.
21137 path="$complete"
21138 arguments="EOL"
21139 new_path=`$CYGPATH -u "$path"`
21140 new_path=`$WHICH "$new_path" 2> /dev/null`
21141 # bat and cmd files are not always considered executable in cygwin causing which
21142 # to not find them
21143 if test "x$new_path" = x \
21144 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
21145 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
21146 new_path=`$CYGPATH -u "$path"`
21147 fi
21148 if test "x$new_path" = x; then
21149 # It's still not found. Now this is an unrecoverable error.
21150 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5
21151 $as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;}
21152 has_space=`$ECHO "$complete" | $GREP " "`
21153 if test "x$has_space" != x; then
21154 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
21155 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
21156 fi
21157 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5
21158 fi
21159 fi
21160
21161 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21162 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21163 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21164 # "foo.exe" is OK but "foo" is an error.
21383 OBJCFLAGS="$ORG_OBJCFLAGS"
21384
21385 LD="$CC"
21386 LDEXE="$CC"
21387 LDCXX="$CXX"
21388 LDEXECXX="$CXX"
21389
21390 # LDEXE is the linker to use, when creating executables.
21391
21392 # Linking C++ libraries.
21393
21394 # Linking C++ executables.
21395
21396
21397 if test "x$OPENJDK_TARGET_OS" != xwindows; then
21398 if test -n "$ac_tool_prefix"; then
21399 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
21400 set dummy ${ac_tool_prefix}ar; ac_word=$2
21401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21402 $as_echo_n "checking for $ac_word... " >&6; }
21403 if test "${ac_cv_prog_AR+set}" = set; then :
21404 $as_echo_n "(cached) " >&6
21405 else
21406 if test -n "$AR"; then
21407 ac_cv_prog_AR="$AR" # Let the user override the test.
21408 else
21409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21410 for as_dir in $PATH
21411 do
21412 IFS=$as_save_IFS
21413 test -z "$as_dir" && as_dir=.
21414 for ac_exec_ext in '' $ac_executable_extensions; do
21415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21416 ac_cv_prog_AR="${ac_tool_prefix}ar"
21417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21418 break 2
21419 fi
21420 done
21421 done
21422 IFS=$as_save_IFS
21423
21424 fi
21425 fi
21426 AR=$ac_cv_prog_AR
21427 if test -n "$AR"; then
21428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
21429 $as_echo "$AR" >&6; }
21430 else
21431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21432 $as_echo "no" >&6; }
21433 fi
21434
21435
21436 fi
21437 if test -z "$ac_cv_prog_AR"; then
21438 ac_ct_AR=$AR
21439 # Extract the first word of "ar", so it can be a program name with args.
21440 set dummy ar; ac_word=$2
21441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21442 $as_echo_n "checking for $ac_word... " >&6; }
21443 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
21444 $as_echo_n "(cached) " >&6
21445 else
21446 if test -n "$ac_ct_AR"; then
21447 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
21448 else
21449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21450 for as_dir in $PATH
21451 do
21452 IFS=$as_save_IFS
21453 test -z "$as_dir" && as_dir=.
21454 for ac_exec_ext in '' $ac_executable_extensions; do
21455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21456 ac_cv_prog_ac_ct_AR="ar"
21457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21458 break 2
21459 fi
21460 done
21461 done
21462 IFS=$as_save_IFS
21463
21489
21490
21491 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21492
21493 # First separate the path from the arguments. This will split at the first
21494 # space.
21495 complete="$AR"
21496 path="${complete%% *}"
21497 tmp="$complete EOL"
21498 arguments="${tmp#* }"
21499
21500 # Input might be given as Windows format, start by converting to
21501 # unix format.
21502 new_path=`$CYGPATH -u "$path"`
21503
21504 # Now try to locate executable using which
21505 new_path=`$WHICH "$new_path" 2> /dev/null`
21506 # bat and cmd files are not always considered executable in cygwin causing which
21507 # to not find them
21508 if test "x$new_path" = x \
21509 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
21510 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
21511 new_path=`$CYGPATH -u "$path"`
21512 fi
21513 if test "x$new_path" = x; then
21514 # Oops. Which didn't find the executable.
21515 # The splitting of arguments from the executable at a space might have been incorrect,
21516 # since paths with space are more likely in Windows. Give it another try with the whole
21517 # argument.
21518 path="$complete"
21519 arguments="EOL"
21520 new_path=`$CYGPATH -u "$path"`
21521 new_path=`$WHICH "$new_path" 2> /dev/null`
21522 # bat and cmd files are not always considered executable in cygwin causing which
21523 # to not find them
21524 if test "x$new_path" = x \
21525 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
21526 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
21527 new_path=`$CYGPATH -u "$path"`
21528 fi
21529 if test "x$new_path" = x; then
21530 # It's still not found. Now this is an unrecoverable error.
21531 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5
21532 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;}
21533 has_space=`$ECHO "$complete" | $GREP " "`
21534 if test "x$has_space" != x; then
21535 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
21536 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
21537 fi
21538 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5
21539 fi
21540 fi
21541
21542 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21543 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21544 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21545 # "foo.exe" is OK but "foo" is an error.
21765 HOTSPOT_CXX="$CXX"
21766 HOTSPOT_LD="$LD"
21767
21768
21769
21770 COMPILER_NAME=gcc
21771 COMPILER_TYPE=CC
21772 if test "x$OPENJDK_TARGET_OS" = xwindows; then :
21773
21774 # For now, assume that we are always compiling using cl.exe.
21775 CC_OUT_OPTION=-Fo
21776 EXE_OUT_OPTION=-out:
21777 LD_OUT_OPTION=-out:
21778 AR_OUT_OPTION=-out:
21779 # On Windows, reject /usr/bin/link (as determined in CYGWIN_LINK), which is a cygwin
21780 # program for something completely different.
21781 # Extract the first word of "link", so it can be a program name with args.
21782 set dummy link; ac_word=$2
21783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21784 $as_echo_n "checking for $ac_word... " >&6; }
21785 if test "${ac_cv_prog_WINLD+set}" = set; then :
21786 $as_echo_n "(cached) " >&6
21787 else
21788 if test -n "$WINLD"; then
21789 ac_cv_prog_WINLD="$WINLD" # Let the user override the test.
21790 else
21791 ac_prog_rejected=no
21792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21793 for as_dir in $PATH
21794 do
21795 IFS=$as_save_IFS
21796 test -z "$as_dir" && as_dir=.
21797 for ac_exec_ext in '' $ac_executable_extensions; do
21798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21799 if test "$as_dir/$ac_word$ac_exec_ext" = "$CYGWIN_LINK"; then
21800 ac_prog_rejected=yes
21801 continue
21802 fi
21803 ac_cv_prog_WINLD="link"
21804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21805 break 2
21836 # the full path to the link.exe program.
21837
21838 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21839
21840 # First separate the path from the arguments. This will split at the first
21841 # space.
21842 complete="$WINLD"
21843 path="${complete%% *}"
21844 tmp="$complete EOL"
21845 arguments="${tmp#* }"
21846
21847 # Input might be given as Windows format, start by converting to
21848 # unix format.
21849 new_path=`$CYGPATH -u "$path"`
21850
21851 # Now try to locate executable using which
21852 new_path=`$WHICH "$new_path" 2> /dev/null`
21853 # bat and cmd files are not always considered executable in cygwin causing which
21854 # to not find them
21855 if test "x$new_path" = x \
21856 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
21857 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
21858 new_path=`$CYGPATH -u "$path"`
21859 fi
21860 if test "x$new_path" = x; then
21861 # Oops. Which didn't find the executable.
21862 # The splitting of arguments from the executable at a space might have been incorrect,
21863 # since paths with space are more likely in Windows. Give it another try with the whole
21864 # argument.
21865 path="$complete"
21866 arguments="EOL"
21867 new_path=`$CYGPATH -u "$path"`
21868 new_path=`$WHICH "$new_path" 2> /dev/null`
21869 # bat and cmd files are not always considered executable in cygwin causing which
21870 # to not find them
21871 if test "x$new_path" = x \
21872 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
21873 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
21874 new_path=`$CYGPATH -u "$path"`
21875 fi
21876 if test "x$new_path" = x; then
21877 # It's still not found. Now this is an unrecoverable error.
21878 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of WINLD, which resolves as \"$complete\", is not found." >&5
21879 $as_echo "$as_me: The path of WINLD, which resolves as \"$complete\", is not found." >&6;}
21880 has_space=`$ECHO "$complete" | $GREP " "`
21881 if test "x$has_space" != x; then
21882 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
21883 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
21884 fi
21885 as_fn_error $? "Cannot locate the the path of WINLD" "$LINENO" 5
21886 fi
21887 fi
21888
21889 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21890 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21891 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21892 # "foo.exe" is OK but "foo" is an error.
22104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the found link.exe is actually the Visual Studio linker" >&5
22105 $as_echo_n "checking if the found link.exe is actually the Visual Studio linker... " >&6; }
22106 "$WINLD" --version > /dev/null
22107 if test $? -eq 0 ; then
22108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22109 $as_echo "no" >&6; }
22110 as_fn_error $? "This is the Cygwin link tool. Please check your PATH and rerun configure." "$LINENO" 5
22111 else
22112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22113 $as_echo "yes" >&6; }
22114 fi
22115 LD="$WINLD"
22116 LDEXE="$WINLD"
22117 LDCXX="$WINLD"
22118 LDEXECXX="$WINLD"
22119
22120 # Extract the first word of "mt", so it can be a program name with args.
22121 set dummy mt; ac_word=$2
22122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22123 $as_echo_n "checking for $ac_word... " >&6; }
22124 if test "${ac_cv_prog_MT+set}" = set; then :
22125 $as_echo_n "(cached) " >&6
22126 else
22127 if test -n "$MT"; then
22128 ac_cv_prog_MT="$MT" # Let the user override the test.
22129 else
22130 ac_prog_rejected=no
22131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22132 for as_dir in $PATH
22133 do
22134 IFS=$as_save_IFS
22135 test -z "$as_dir" && as_dir=.
22136 for ac_exec_ext in '' $ac_executable_extensions; do
22137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22138 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/mt"; then
22139 ac_prog_rejected=yes
22140 continue
22141 fi
22142 ac_cv_prog_MT="mt"
22143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22144 break 2
22173
22174
22175 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22176
22177 # First separate the path from the arguments. This will split at the first
22178 # space.
22179 complete="$MT"
22180 path="${complete%% *}"
22181 tmp="$complete EOL"
22182 arguments="${tmp#* }"
22183
22184 # Input might be given as Windows format, start by converting to
22185 # unix format.
22186 new_path=`$CYGPATH -u "$path"`
22187
22188 # Now try to locate executable using which
22189 new_path=`$WHICH "$new_path" 2> /dev/null`
22190 # bat and cmd files are not always considered executable in cygwin causing which
22191 # to not find them
22192 if test "x$new_path" = x \
22193 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
22194 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
22195 new_path=`$CYGPATH -u "$path"`
22196 fi
22197 if test "x$new_path" = x; then
22198 # Oops. Which didn't find the executable.
22199 # The splitting of arguments from the executable at a space might have been incorrect,
22200 # since paths with space are more likely in Windows. Give it another try with the whole
22201 # argument.
22202 path="$complete"
22203 arguments="EOL"
22204 new_path=`$CYGPATH -u "$path"`
22205 new_path=`$WHICH "$new_path" 2> /dev/null`
22206 # bat and cmd files are not always considered executable in cygwin causing which
22207 # to not find them
22208 if test "x$new_path" = x \
22209 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
22210 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
22211 new_path=`$CYGPATH -u "$path"`
22212 fi
22213 if test "x$new_path" = x; then
22214 # It's still not found. Now this is an unrecoverable error.
22215 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5
22216 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;}
22217 has_space=`$ECHO "$complete" | $GREP " "`
22218 if test "x$has_space" != x; then
22219 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
22220 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
22221 fi
22222 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5
22223 fi
22224 fi
22225
22226 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22227 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22228 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22229 # "foo.exe" is OK but "foo" is an error.
22425 fi
22426
22427 # Now join together the path and the arguments once again
22428 if test "x$arguments" != xEOL; then
22429 new_complete="$new_path ${arguments% *}"
22430 else
22431 new_complete="$new_path"
22432 fi
22433
22434 if test "x$complete" != "x$new_complete"; then
22435 MT="$new_complete"
22436 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MT to \"$new_complete\"" >&5
22437 $as_echo "$as_me: Rewriting MT to \"$new_complete\"" >&6;}
22438 fi
22439
22440 # The resource compiler
22441 # Extract the first word of "rc", so it can be a program name with args.
22442 set dummy rc; ac_word=$2
22443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22444 $as_echo_n "checking for $ac_word... " >&6; }
22445 if test "${ac_cv_prog_RC+set}" = set; then :
22446 $as_echo_n "(cached) " >&6
22447 else
22448 if test -n "$RC"; then
22449 ac_cv_prog_RC="$RC" # Let the user override the test.
22450 else
22451 ac_prog_rejected=no
22452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22453 for as_dir in $PATH
22454 do
22455 IFS=$as_save_IFS
22456 test -z "$as_dir" && as_dir=.
22457 for ac_exec_ext in '' $ac_executable_extensions; do
22458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22459 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/rc"; then
22460 ac_prog_rejected=yes
22461 continue
22462 fi
22463 ac_cv_prog_RC="rc"
22464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22465 break 2
22494
22495
22496 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22497
22498 # First separate the path from the arguments. This will split at the first
22499 # space.
22500 complete="$RC"
22501 path="${complete%% *}"
22502 tmp="$complete EOL"
22503 arguments="${tmp#* }"
22504
22505 # Input might be given as Windows format, start by converting to
22506 # unix format.
22507 new_path=`$CYGPATH -u "$path"`
22508
22509 # Now try to locate executable using which
22510 new_path=`$WHICH "$new_path" 2> /dev/null`
22511 # bat and cmd files are not always considered executable in cygwin causing which
22512 # to not find them
22513 if test "x$new_path" = x \
22514 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
22515 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
22516 new_path=`$CYGPATH -u "$path"`
22517 fi
22518 if test "x$new_path" = x; then
22519 # Oops. Which didn't find the executable.
22520 # The splitting of arguments from the executable at a space might have been incorrect,
22521 # since paths with space are more likely in Windows. Give it another try with the whole
22522 # argument.
22523 path="$complete"
22524 arguments="EOL"
22525 new_path=`$CYGPATH -u "$path"`
22526 new_path=`$WHICH "$new_path" 2> /dev/null`
22527 # bat and cmd files are not always considered executable in cygwin causing which
22528 # to not find them
22529 if test "x$new_path" = x \
22530 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
22531 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
22532 new_path=`$CYGPATH -u "$path"`
22533 fi
22534 if test "x$new_path" = x; then
22535 # It's still not found. Now this is an unrecoverable error.
22536 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5
22537 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;}
22538 has_space=`$ECHO "$complete" | $GREP " "`
22539 if test "x$has_space" != x; then
22540 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
22541 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
22542 fi
22543 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5
22544 fi
22545 fi
22546
22547 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22548 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22549 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22550 # "foo.exe" is OK but "foo" is an error.
22816 fi
22817 JDK_UPDATE_VERSION_NOTNULL=$JDK_UPDATE_VERSION
22818 if test "x$JDK_UPDATE_VERSION" = x; then :
22819
22820 JDK_UPDATE_VERSION_NOTNULL=0
22821
22822 fi
22823 RC_FLAGS="$RC_FLAGS -d \"JDK_BUILD_ID=$FULL_VERSION\""
22824 RC_FLAGS="$RC_FLAGS -d \"JDK_COMPANY=$COMPANY_NAME\""
22825 RC_FLAGS="$RC_FLAGS -d \"JDK_COMPONENT=$PRODUCT_NAME $JDK_RC_PLATFORM_NAME binary\""
22826 RC_FLAGS="$RC_FLAGS -d \"JDK_VER=$JDK_MINOR_VERSION.$JDK_MICRO_VERSION.$JDK_UPDATE_VERSION_NOTNULL.$COOKED_BUILD_NUMBER\""
22827 RC_FLAGS="$RC_FLAGS -d \"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\""
22828 RC_FLAGS="$RC_FLAGS -d \"JDK_NAME=$PRODUCT_NAME $JDK_RC_PLATFORM_NAME $JDK_MINOR_VERSION $JDK_UPDATE_META_TAG\""
22829 RC_FLAGS="$RC_FLAGS -d \"JDK_FVER=$JDK_MINOR_VERSION,$JDK_MICRO_VERSION,$JDK_UPDATE_VERSION_NOTNULL,$COOKED_BUILD_NUMBER\""
22830
22831 # lib.exe is used to create static libraries.
22832 # Extract the first word of "lib", so it can be a program name with args.
22833 set dummy lib; ac_word=$2
22834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22835 $as_echo_n "checking for $ac_word... " >&6; }
22836 if test "${ac_cv_prog_WINAR+set}" = set; then :
22837 $as_echo_n "(cached) " >&6
22838 else
22839 if test -n "$WINAR"; then
22840 ac_cv_prog_WINAR="$WINAR" # Let the user override the test.
22841 else
22842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22843 for as_dir in $PATH
22844 do
22845 IFS=$as_save_IFS
22846 test -z "$as_dir" && as_dir=.
22847 for ac_exec_ext in '' $ac_executable_extensions; do
22848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22849 ac_cv_prog_WINAR="lib"
22850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22851 break 2
22852 fi
22853 done
22854 done
22855 IFS=$as_save_IFS
22856
22868
22869
22870 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22871
22872 # First separate the path from the arguments. This will split at the first
22873 # space.
22874 complete="$WINAR"
22875 path="${complete%% *}"
22876 tmp="$complete EOL"
22877 arguments="${tmp#* }"
22878
22879 # Input might be given as Windows format, start by converting to
22880 # unix format.
22881 new_path=`$CYGPATH -u "$path"`
22882
22883 # Now try to locate executable using which
22884 new_path=`$WHICH "$new_path" 2> /dev/null`
22885 # bat and cmd files are not always considered executable in cygwin causing which
22886 # to not find them
22887 if test "x$new_path" = x \
22888 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
22889 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
22890 new_path=`$CYGPATH -u "$path"`
22891 fi
22892 if test "x$new_path" = x; then
22893 # Oops. Which didn't find the executable.
22894 # The splitting of arguments from the executable at a space might have been incorrect,
22895 # since paths with space are more likely in Windows. Give it another try with the whole
22896 # argument.
22897 path="$complete"
22898 arguments="EOL"
22899 new_path=`$CYGPATH -u "$path"`
22900 new_path=`$WHICH "$new_path" 2> /dev/null`
22901 # bat and cmd files are not always considered executable in cygwin causing which
22902 # to not find them
22903 if test "x$new_path" = x \
22904 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
22905 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
22906 new_path=`$CYGPATH -u "$path"`
22907 fi
22908 if test "x$new_path" = x; then
22909 # It's still not found. Now this is an unrecoverable error.
22910 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of WINAR, which resolves as \"$complete\", is not found." >&5
22911 $as_echo "$as_me: The path of WINAR, which resolves as \"$complete\", is not found." >&6;}
22912 has_space=`$ECHO "$complete" | $GREP " "`
22913 if test "x$has_space" != x; then
22914 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
22915 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
22916 fi
22917 as_fn_error $? "Cannot locate the the path of WINAR" "$LINENO" 5
22918 fi
22919 fi
22920
22921 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22922 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22923 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22924 # "foo.exe" is OK but "foo" is an error.
23122 # Now join together the path and the arguments once again
23123 if test "x$arguments" != xEOL; then
23124 new_complete="$new_path ${arguments% *}"
23125 else
23126 new_complete="$new_path"
23127 fi
23128
23129 if test "x$complete" != "x$new_complete"; then
23130 WINAR="$new_complete"
23131 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting WINAR to \"$new_complete\"" >&5
23132 $as_echo "$as_me: Rewriting WINAR to \"$new_complete\"" >&6;}
23133 fi
23134
23135 AR="$WINAR"
23136 ARFLAGS="-nologo -NODEFAULTLIB:MSVCRT"
23137
23138 # Extract the first word of "dumpbin", so it can be a program name with args.
23139 set dummy dumpbin; ac_word=$2
23140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23141 $as_echo_n "checking for $ac_word... " >&6; }
23142 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
23143 $as_echo_n "(cached) " >&6
23144 else
23145 if test -n "$DUMPBIN"; then
23146 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
23147 else
23148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23149 for as_dir in $PATH
23150 do
23151 IFS=$as_save_IFS
23152 test -z "$as_dir" && as_dir=.
23153 for ac_exec_ext in '' $ac_executable_extensions; do
23154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23155 ac_cv_prog_DUMPBIN="dumpbin"
23156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23157 break 2
23158 fi
23159 done
23160 done
23161 IFS=$as_save_IFS
23162
23174
23175
23176 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23177
23178 # First separate the path from the arguments. This will split at the first
23179 # space.
23180 complete="$DUMPBIN"
23181 path="${complete%% *}"
23182 tmp="$complete EOL"
23183 arguments="${tmp#* }"
23184
23185 # Input might be given as Windows format, start by converting to
23186 # unix format.
23187 new_path=`$CYGPATH -u "$path"`
23188
23189 # Now try to locate executable using which
23190 new_path=`$WHICH "$new_path" 2> /dev/null`
23191 # bat and cmd files are not always considered executable in cygwin causing which
23192 # to not find them
23193 if test "x$new_path" = x \
23194 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
23195 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
23196 new_path=`$CYGPATH -u "$path"`
23197 fi
23198 if test "x$new_path" = x; then
23199 # Oops. Which didn't find the executable.
23200 # The splitting of arguments from the executable at a space might have been incorrect,
23201 # since paths with space are more likely in Windows. Give it another try with the whole
23202 # argument.
23203 path="$complete"
23204 arguments="EOL"
23205 new_path=`$CYGPATH -u "$path"`
23206 new_path=`$WHICH "$new_path" 2> /dev/null`
23207 # bat and cmd files are not always considered executable in cygwin causing which
23208 # to not find them
23209 if test "x$new_path" = x \
23210 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
23211 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
23212 new_path=`$CYGPATH -u "$path"`
23213 fi
23214 if test "x$new_path" = x; then
23215 # It's still not found. Now this is an unrecoverable error.
23216 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5
23217 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;}
23218 has_space=`$ECHO "$complete" | $GREP " "`
23219 if test "x$has_space" != x; then
23220 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
23221 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
23222 fi
23223 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5
23224 fi
23225 fi
23226
23227 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23228 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23229 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23230 # "foo.exe" is OK but "foo" is an error.
23441
23442 COMPILER_TYPE=CL
23443 CCXXFLAGS="$CCXXFLAGS -nologo"
23444
23445 fi
23446
23447
23448
23449 ac_ext=c
23450 ac_cpp='$CPP $CPPFLAGS'
23451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
23455 $as_echo_n "checking how to run the C preprocessor... " >&6; }
23456 # On Suns, sometimes $CPP names a directory.
23457 if test -n "$CPP" && test -d "$CPP"; then
23458 CPP=
23459 fi
23460 if test -z "$CPP"; then
23461 if test "${ac_cv_prog_CPP+set}" = set; then :
23462 $as_echo_n "(cached) " >&6
23463 else
23464 # Double quotes because CPP needs to be expanded
23465 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
23466 do
23467 ac_preproc_ok=false
23468 for ac_c_preproc_warn_flag in '' yes
23469 do
23470 # Use a header file that comes with gcc, so configuring glibc
23471 # with a fresh cross-compiler works.
23472 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23473 # <limits.h> exists even on freestanding compilers.
23474 # On the NeXT, cc -E runs the code through the compiler's parser,
23475 # not just through cpp. "Syntax error" is here to catch this case.
23476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23477 /* end confdefs.h. */
23478 #ifdef __STDC__
23479 # include <limits.h>
23480 #else
23481 # include <assert.h>
23557 _ACEOF
23558 if ac_fn_c_try_cpp "$LINENO"; then :
23559 # Broken: success on invalid input.
23560 continue
23561 else
23562 # Passes both tests.
23563 ac_preproc_ok=:
23564 break
23565 fi
23566 rm -f conftest.err conftest.i conftest.$ac_ext
23567
23568 done
23569 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
23570 rm -f conftest.i conftest.err conftest.$ac_ext
23571 if $ac_preproc_ok; then :
23572
23573 else
23574 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23575 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23576 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
23577 See \`config.log' for more details" "$LINENO" 5 ; }
23578 fi
23579
23580 ac_ext=cpp
23581 ac_cpp='$CXXCPP $CPPFLAGS'
23582 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23583 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23584 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23585
23586
23587 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23588
23589 # First separate the path from the arguments. This will split at the first
23590 # space.
23591 complete="$CPP"
23592 path="${complete%% *}"
23593 tmp="$complete EOL"
23594 arguments="${tmp#* }"
23595
23596 # Input might be given as Windows format, start by converting to
23597 # unix format.
23598 new_path=`$CYGPATH -u "$path"`
23599
23600 # Now try to locate executable using which
23601 new_path=`$WHICH "$new_path" 2> /dev/null`
23602 # bat and cmd files are not always considered executable in cygwin causing which
23603 # to not find them
23604 if test "x$new_path" = x \
23605 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
23606 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
23607 new_path=`$CYGPATH -u "$path"`
23608 fi
23609 if test "x$new_path" = x; then
23610 # Oops. Which didn't find the executable.
23611 # The splitting of arguments from the executable at a space might have been incorrect,
23612 # since paths with space are more likely in Windows. Give it another try with the whole
23613 # argument.
23614 path="$complete"
23615 arguments="EOL"
23616 new_path=`$CYGPATH -u "$path"`
23617 new_path=`$WHICH "$new_path" 2> /dev/null`
23618 # bat and cmd files are not always considered executable in cygwin causing which
23619 # to not find them
23620 if test "x$new_path" = x \
23621 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
23622 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
23623 new_path=`$CYGPATH -u "$path"`
23624 fi
23625 if test "x$new_path" = x; then
23626 # It's still not found. Now this is an unrecoverable error.
23627 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5
23628 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;}
23629 has_space=`$ECHO "$complete" | $GREP " "`
23630 if test "x$has_space" != x; then
23631 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
23632 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
23633 fi
23634 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5
23635 fi
23636 fi
23637
23638 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23639 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23640 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23641 # "foo.exe" is OK but "foo" is an error.
23841 new_complete="$new_path ${arguments% *}"
23842 else
23843 new_complete="$new_path"
23844 fi
23845
23846 if test "x$complete" != "x$new_complete"; then
23847 CPP="$new_complete"
23848 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CPP to \"$new_complete\"" >&5
23849 $as_echo "$as_me: Rewriting CPP to \"$new_complete\"" >&6;}
23850 fi
23851
23852
23853 ac_ext=cpp
23854 ac_cpp='$CXXCPP $CPPFLAGS'
23855 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23856 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23857 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
23859 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
23860 if test -z "$CXXCPP"; then
23861 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
23862 $as_echo_n "(cached) " >&6
23863 else
23864 # Double quotes because CXXCPP needs to be expanded
23865 for CXXCPP in "$CXX -E" "/lib/cpp"
23866 do
23867 ac_preproc_ok=false
23868 for ac_cxx_preproc_warn_flag in '' yes
23869 do
23870 # Use a header file that comes with gcc, so configuring glibc
23871 # with a fresh cross-compiler works.
23872 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23873 # <limits.h> exists even on freestanding compilers.
23874 # On the NeXT, cc -E runs the code through the compiler's parser,
23875 # not just through cpp. "Syntax error" is here to catch this case.
23876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23877 /* end confdefs.h. */
23878 #ifdef __STDC__
23879 # include <limits.h>
23880 #else
23881 # include <assert.h>
23957 _ACEOF
23958 if ac_fn_cxx_try_cpp "$LINENO"; then :
23959 # Broken: success on invalid input.
23960 continue
23961 else
23962 # Passes both tests.
23963 ac_preproc_ok=:
23964 break
23965 fi
23966 rm -f conftest.err conftest.i conftest.$ac_ext
23967
23968 done
23969 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
23970 rm -f conftest.i conftest.err conftest.$ac_ext
23971 if $ac_preproc_ok; then :
23972
23973 else
23974 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23975 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23976 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
23977 See \`config.log' for more details" "$LINENO" 5 ; }
23978 fi
23979
23980 ac_ext=cpp
23981 ac_cpp='$CXXCPP $CPPFLAGS'
23982 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23983 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23984 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23985
23986
23987 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23988
23989 # First separate the path from the arguments. This will split at the first
23990 # space.
23991 complete="$CXXCPP"
23992 path="${complete%% *}"
23993 tmp="$complete EOL"
23994 arguments="${tmp#* }"
23995
23996 # Input might be given as Windows format, start by converting to
23997 # unix format.
23998 new_path=`$CYGPATH -u "$path"`
23999
24000 # Now try to locate executable using which
24001 new_path=`$WHICH "$new_path" 2> /dev/null`
24002 # bat and cmd files are not always considered executable in cygwin causing which
24003 # to not find them
24004 if test "x$new_path" = x \
24005 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
24006 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
24007 new_path=`$CYGPATH -u "$path"`
24008 fi
24009 if test "x$new_path" = x; then
24010 # Oops. Which didn't find the executable.
24011 # The splitting of arguments from the executable at a space might have been incorrect,
24012 # since paths with space are more likely in Windows. Give it another try with the whole
24013 # argument.
24014 path="$complete"
24015 arguments="EOL"
24016 new_path=`$CYGPATH -u "$path"`
24017 new_path=`$WHICH "$new_path" 2> /dev/null`
24018 # bat and cmd files are not always considered executable in cygwin causing which
24019 # to not find them
24020 if test "x$new_path" = x \
24021 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
24022 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
24023 new_path=`$CYGPATH -u "$path"`
24024 fi
24025 if test "x$new_path" = x; then
24026 # It's still not found. Now this is an unrecoverable error.
24027 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5
24028 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;}
24029 has_space=`$ECHO "$complete" | $GREP " "`
24030 if test "x$has_space" != x; then
24031 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
24032 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
24033 fi
24034 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5
24035 fi
24036 fi
24037
24038 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24039 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24040 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24041 # "foo.exe" is OK but "foo" is an error.
24259 BUILD_CXX="$CXX"
24260 BUILD_LD="$LD"
24261 fi
24262
24263 # for solaris we really need solaris tools, and not gnu equivalent
24264 # these seems to normally reside in /usr/ccs/bin so add that to path before
24265 # starting to probe
24266 #
24267 # NOTE: I add this /usr/ccs/bin after TOOLS but before OLD_PATH
24268 # so that it can be overriden --with-tools-dir
24269 if test "x$OPENJDK_BUILD_OS" = xsolaris; then
24270 PATH="${TOOLS_DIR}:/usr/ccs/bin:${OLD_PATH}"
24271 fi
24272
24273 # Find the right assembler.
24274 if test "x$OPENJDK_TARGET_OS" = xsolaris; then
24275 # Extract the first word of "as", so it can be a program name with args.
24276 set dummy as; ac_word=$2
24277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24278 $as_echo_n "checking for $ac_word... " >&6; }
24279 if test "${ac_cv_path_AS+set}" = set; then :
24280 $as_echo_n "(cached) " >&6
24281 else
24282 case $AS in
24283 [\\/]* | ?:[\\/]*)
24284 ac_cv_path_AS="$AS" # Let the user override the test with a path.
24285 ;;
24286 *)
24287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24288 for as_dir in $PATH
24289 do
24290 IFS=$as_save_IFS
24291 test -z "$as_dir" && as_dir=.
24292 for ac_exec_ext in '' $ac_executable_extensions; do
24293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24294 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext"
24295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24296 break 2
24297 fi
24298 done
24299 done
24314
24315
24316 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24317
24318 # First separate the path from the arguments. This will split at the first
24319 # space.
24320 complete="$AS"
24321 path="${complete%% *}"
24322 tmp="$complete EOL"
24323 arguments="${tmp#* }"
24324
24325 # Input might be given as Windows format, start by converting to
24326 # unix format.
24327 new_path=`$CYGPATH -u "$path"`
24328
24329 # Now try to locate executable using which
24330 new_path=`$WHICH "$new_path" 2> /dev/null`
24331 # bat and cmd files are not always considered executable in cygwin causing which
24332 # to not find them
24333 if test "x$new_path" = x \
24334 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
24335 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
24336 new_path=`$CYGPATH -u "$path"`
24337 fi
24338 if test "x$new_path" = x; then
24339 # Oops. Which didn't find the executable.
24340 # The splitting of arguments from the executable at a space might have been incorrect,
24341 # since paths with space are more likely in Windows. Give it another try with the whole
24342 # argument.
24343 path="$complete"
24344 arguments="EOL"
24345 new_path=`$CYGPATH -u "$path"`
24346 new_path=`$WHICH "$new_path" 2> /dev/null`
24347 # bat and cmd files are not always considered executable in cygwin causing which
24348 # to not find them
24349 if test "x$new_path" = x \
24350 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
24351 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
24352 new_path=`$CYGPATH -u "$path"`
24353 fi
24354 if test "x$new_path" = x; then
24355 # It's still not found. Now this is an unrecoverable error.
24356 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5
24357 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;}
24358 has_space=`$ECHO "$complete" | $GREP " "`
24359 if test "x$has_space" != x; then
24360 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
24361 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
24362 fi
24363 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5
24364 fi
24365 fi
24366
24367 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24368 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24369 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24370 # "foo.exe" is OK but "foo" is an error.
24573 fi
24574
24575 if test "x$complete" != "x$new_complete"; then
24576 AS="$new_complete"
24577 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AS to \"$new_complete\"" >&5
24578 $as_echo "$as_me: Rewriting AS to \"$new_complete\"" >&6;}
24579 fi
24580
24581 else
24582 AS="$CC -c"
24583 fi
24584
24585
24586 if test "x$OPENJDK_TARGET_OS" = xsolaris; then
24587 for ac_prog in gnm nm
24588 do
24589 # Extract the first word of "$ac_prog", so it can be a program name with args.
24590 set dummy $ac_prog; ac_word=$2
24591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24592 $as_echo_n "checking for $ac_word... " >&6; }
24593 if test "${ac_cv_path_NM+set}" = set; then :
24594 $as_echo_n "(cached) " >&6
24595 else
24596 case $NM in
24597 [\\/]* | ?:[\\/]*)
24598 ac_cv_path_NM="$NM" # Let the user override the test with a path.
24599 ;;
24600 *)
24601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24602 for as_dir in $PATH
24603 do
24604 IFS=$as_save_IFS
24605 test -z "$as_dir" && as_dir=.
24606 for ac_exec_ext in '' $ac_executable_extensions; do
24607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24608 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
24609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24610 break 2
24611 fi
24612 done
24613 done
24631
24632
24633 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24634
24635 # First separate the path from the arguments. This will split at the first
24636 # space.
24637 complete="$NM"
24638 path="${complete%% *}"
24639 tmp="$complete EOL"
24640 arguments="${tmp#* }"
24641
24642 # Input might be given as Windows format, start by converting to
24643 # unix format.
24644 new_path=`$CYGPATH -u "$path"`
24645
24646 # Now try to locate executable using which
24647 new_path=`$WHICH "$new_path" 2> /dev/null`
24648 # bat and cmd files are not always considered executable in cygwin causing which
24649 # to not find them
24650 if test "x$new_path" = x \
24651 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
24652 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
24653 new_path=`$CYGPATH -u "$path"`
24654 fi
24655 if test "x$new_path" = x; then
24656 # Oops. Which didn't find the executable.
24657 # The splitting of arguments from the executable at a space might have been incorrect,
24658 # since paths with space are more likely in Windows. Give it another try with the whole
24659 # argument.
24660 path="$complete"
24661 arguments="EOL"
24662 new_path=`$CYGPATH -u "$path"`
24663 new_path=`$WHICH "$new_path" 2> /dev/null`
24664 # bat and cmd files are not always considered executable in cygwin causing which
24665 # to not find them
24666 if test "x$new_path" = x \
24667 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
24668 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
24669 new_path=`$CYGPATH -u "$path"`
24670 fi
24671 if test "x$new_path" = x; then
24672 # It's still not found. Now this is an unrecoverable error.
24673 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5
24674 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;}
24675 has_space=`$ECHO "$complete" | $GREP " "`
24676 if test "x$has_space" != x; then
24677 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
24678 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
24679 fi
24680 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5
24681 fi
24682 fi
24683
24684 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24685 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24686 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24687 # "foo.exe" is OK but "foo" is an error.
24882 fi
24883 fi
24884
24885 # Now join together the path and the arguments once again
24886 if test "x$arguments" != xEOL; then
24887 new_complete="$new_path ${arguments% *}"
24888 else
24889 new_complete="$new_path"
24890 fi
24891
24892 if test "x$complete" != "x$new_complete"; then
24893 NM="$new_complete"
24894 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5
24895 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;}
24896 fi
24897
24898 # Extract the first word of "strip", so it can be a program name with args.
24899 set dummy strip; ac_word=$2
24900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24901 $as_echo_n "checking for $ac_word... " >&6; }
24902 if test "${ac_cv_path_STRIP+set}" = set; then :
24903 $as_echo_n "(cached) " >&6
24904 else
24905 case $STRIP in
24906 [\\/]* | ?:[\\/]*)
24907 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
24908 ;;
24909 *)
24910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24911 for as_dir in $PATH
24912 do
24913 IFS=$as_save_IFS
24914 test -z "$as_dir" && as_dir=.
24915 for ac_exec_ext in '' $ac_executable_extensions; do
24916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24917 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
24918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24919 break 2
24920 fi
24921 done
24922 done
24937
24938
24939 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24940
24941 # First separate the path from the arguments. This will split at the first
24942 # space.
24943 complete="$STRIP"
24944 path="${complete%% *}"
24945 tmp="$complete EOL"
24946 arguments="${tmp#* }"
24947
24948 # Input might be given as Windows format, start by converting to
24949 # unix format.
24950 new_path=`$CYGPATH -u "$path"`
24951
24952 # Now try to locate executable using which
24953 new_path=`$WHICH "$new_path" 2> /dev/null`
24954 # bat and cmd files are not always considered executable in cygwin causing which
24955 # to not find them
24956 if test "x$new_path" = x \
24957 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
24958 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
24959 new_path=`$CYGPATH -u "$path"`
24960 fi
24961 if test "x$new_path" = x; then
24962 # Oops. Which didn't find the executable.
24963 # The splitting of arguments from the executable at a space might have been incorrect,
24964 # since paths with space are more likely in Windows. Give it another try with the whole
24965 # argument.
24966 path="$complete"
24967 arguments="EOL"
24968 new_path=`$CYGPATH -u "$path"`
24969 new_path=`$WHICH "$new_path" 2> /dev/null`
24970 # bat and cmd files are not always considered executable in cygwin causing which
24971 # to not find them
24972 if test "x$new_path" = x \
24973 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
24974 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
24975 new_path=`$CYGPATH -u "$path"`
24976 fi
24977 if test "x$new_path" = x; then
24978 # It's still not found. Now this is an unrecoverable error.
24979 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5
24980 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;}
24981 has_space=`$ECHO "$complete" | $GREP " "`
24982 if test "x$has_space" != x; then
24983 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
24984 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
24985 fi
24986 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5
24987 fi
24988 fi
24989
24990 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24991 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24992 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24993 # "foo.exe" is OK but "foo" is an error.
25188 fi
25189 fi
25190
25191 # Now join together the path and the arguments once again
25192 if test "x$arguments" != xEOL; then
25193 new_complete="$new_path ${arguments% *}"
25194 else
25195 new_complete="$new_path"
25196 fi
25197
25198 if test "x$complete" != "x$new_complete"; then
25199 STRIP="$new_complete"
25200 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5
25201 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;}
25202 fi
25203
25204 # Extract the first word of "mcs", so it can be a program name with args.
25205 set dummy mcs; ac_word=$2
25206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25207 $as_echo_n "checking for $ac_word... " >&6; }
25208 if test "${ac_cv_path_MCS+set}" = set; then :
25209 $as_echo_n "(cached) " >&6
25210 else
25211 case $MCS in
25212 [\\/]* | ?:[\\/]*)
25213 ac_cv_path_MCS="$MCS" # Let the user override the test with a path.
25214 ;;
25215 *)
25216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25217 for as_dir in $PATH
25218 do
25219 IFS=$as_save_IFS
25220 test -z "$as_dir" && as_dir=.
25221 for ac_exec_ext in '' $ac_executable_extensions; do
25222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25223 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext"
25224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25225 break 2
25226 fi
25227 done
25228 done
25243
25244
25245 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25246
25247 # First separate the path from the arguments. This will split at the first
25248 # space.
25249 complete="$MCS"
25250 path="${complete%% *}"
25251 tmp="$complete EOL"
25252 arguments="${tmp#* }"
25253
25254 # Input might be given as Windows format, start by converting to
25255 # unix format.
25256 new_path=`$CYGPATH -u "$path"`
25257
25258 # Now try to locate executable using which
25259 new_path=`$WHICH "$new_path" 2> /dev/null`
25260 # bat and cmd files are not always considered executable in cygwin causing which
25261 # to not find them
25262 if test "x$new_path" = x \
25263 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
25264 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
25265 new_path=`$CYGPATH -u "$path"`
25266 fi
25267 if test "x$new_path" = x; then
25268 # Oops. Which didn't find the executable.
25269 # The splitting of arguments from the executable at a space might have been incorrect,
25270 # since paths with space are more likely in Windows. Give it another try with the whole
25271 # argument.
25272 path="$complete"
25273 arguments="EOL"
25274 new_path=`$CYGPATH -u "$path"`
25275 new_path=`$WHICH "$new_path" 2> /dev/null`
25276 # bat and cmd files are not always considered executable in cygwin causing which
25277 # to not find them
25278 if test "x$new_path" = x \
25279 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
25280 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
25281 new_path=`$CYGPATH -u "$path"`
25282 fi
25283 if test "x$new_path" = x; then
25284 # It's still not found. Now this is an unrecoverable error.
25285 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5
25286 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;}
25287 has_space=`$ECHO "$complete" | $GREP " "`
25288 if test "x$has_space" != x; then
25289 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
25290 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
25291 fi
25292 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5
25293 fi
25294 fi
25295
25296 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
25297 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
25298 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
25299 # "foo.exe" is OK but "foo" is an error.
25496
25497 # Now join together the path and the arguments once again
25498 if test "x$arguments" != xEOL; then
25499 new_complete="$new_path ${arguments% *}"
25500 else
25501 new_complete="$new_path"
25502 fi
25503
25504 if test "x$complete" != "x$new_complete"; then
25505 MCS="$new_complete"
25506 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MCS to \"$new_complete\"" >&5
25507 $as_echo "$as_me: Rewriting MCS to \"$new_complete\"" >&6;}
25508 fi
25509
25510 elif test "x$OPENJDK_TARGET_OS" != xwindows; then
25511 if test -n "$ac_tool_prefix"; then
25512 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
25513 set dummy ${ac_tool_prefix}nm; ac_word=$2
25514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25515 $as_echo_n "checking for $ac_word... " >&6; }
25516 if test "${ac_cv_prog_NM+set}" = set; then :
25517 $as_echo_n "(cached) " >&6
25518 else
25519 if test -n "$NM"; then
25520 ac_cv_prog_NM="$NM" # Let the user override the test.
25521 else
25522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25523 for as_dir in $PATH
25524 do
25525 IFS=$as_save_IFS
25526 test -z "$as_dir" && as_dir=.
25527 for ac_exec_ext in '' $ac_executable_extensions; do
25528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25529 ac_cv_prog_NM="${ac_tool_prefix}nm"
25530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25531 break 2
25532 fi
25533 done
25534 done
25535 IFS=$as_save_IFS
25536
25537 fi
25538 fi
25539 NM=$ac_cv_prog_NM
25540 if test -n "$NM"; then
25541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
25542 $as_echo "$NM" >&6; }
25543 else
25544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25545 $as_echo "no" >&6; }
25546 fi
25547
25548
25549 fi
25550 if test -z "$ac_cv_prog_NM"; then
25551 ac_ct_NM=$NM
25552 # Extract the first word of "nm", so it can be a program name with args.
25553 set dummy nm; ac_word=$2
25554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25555 $as_echo_n "checking for $ac_word... " >&6; }
25556 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
25557 $as_echo_n "(cached) " >&6
25558 else
25559 if test -n "$ac_ct_NM"; then
25560 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
25561 else
25562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25563 for as_dir in $PATH
25564 do
25565 IFS=$as_save_IFS
25566 test -z "$as_dir" && as_dir=.
25567 for ac_exec_ext in '' $ac_executable_extensions; do
25568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25569 ac_cv_prog_ac_ct_NM="nm"
25570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25571 break 2
25572 fi
25573 done
25574 done
25575 IFS=$as_save_IFS
25576
25602
25603
25604 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25605
25606 # First separate the path from the arguments. This will split at the first
25607 # space.
25608 complete="$NM"
25609 path="${complete%% *}"
25610 tmp="$complete EOL"
25611 arguments="${tmp#* }"
25612
25613 # Input might be given as Windows format, start by converting to
25614 # unix format.
25615 new_path=`$CYGPATH -u "$path"`
25616
25617 # Now try to locate executable using which
25618 new_path=`$WHICH "$new_path" 2> /dev/null`
25619 # bat and cmd files are not always considered executable in cygwin causing which
25620 # to not find them
25621 if test "x$new_path" = x \
25622 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
25623 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
25624 new_path=`$CYGPATH -u "$path"`
25625 fi
25626 if test "x$new_path" = x; then
25627 # Oops. Which didn't find the executable.
25628 # The splitting of arguments from the executable at a space might have been incorrect,
25629 # since paths with space are more likely in Windows. Give it another try with the whole
25630 # argument.
25631 path="$complete"
25632 arguments="EOL"
25633 new_path=`$CYGPATH -u "$path"`
25634 new_path=`$WHICH "$new_path" 2> /dev/null`
25635 # bat and cmd files are not always considered executable in cygwin causing which
25636 # to not find them
25637 if test "x$new_path" = x \
25638 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
25639 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
25640 new_path=`$CYGPATH -u "$path"`
25641 fi
25642 if test "x$new_path" = x; then
25643 # It's still not found. Now this is an unrecoverable error.
25644 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5
25645 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;}
25646 has_space=`$ECHO "$complete" | $GREP " "`
25647 if test "x$has_space" != x; then
25648 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
25649 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
25650 fi
25651 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5
25652 fi
25653 fi
25654
25655 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
25656 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
25657 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
25658 # "foo.exe" is OK but "foo" is an error.
25854 fi
25855
25856 # Now join together the path and the arguments once again
25857 if test "x$arguments" != xEOL; then
25858 new_complete="$new_path ${arguments% *}"
25859 else
25860 new_complete="$new_path"
25861 fi
25862
25863 if test "x$complete" != "x$new_complete"; then
25864 NM="$new_complete"
25865 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5
25866 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;}
25867 fi
25868
25869 if test -n "$ac_tool_prefix"; then
25870 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
25871 set dummy ${ac_tool_prefix}strip; ac_word=$2
25872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25873 $as_echo_n "checking for $ac_word... " >&6; }
25874 if test "${ac_cv_prog_STRIP+set}" = set; then :
25875 $as_echo_n "(cached) " >&6
25876 else
25877 if test -n "$STRIP"; then
25878 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
25879 else
25880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25881 for as_dir in $PATH
25882 do
25883 IFS=$as_save_IFS
25884 test -z "$as_dir" && as_dir=.
25885 for ac_exec_ext in '' $ac_executable_extensions; do
25886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25887 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
25888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25889 break 2
25890 fi
25891 done
25892 done
25893 IFS=$as_save_IFS
25894
25895 fi
25896 fi
25897 STRIP=$ac_cv_prog_STRIP
25898 if test -n "$STRIP"; then
25899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
25900 $as_echo "$STRIP" >&6; }
25901 else
25902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25903 $as_echo "no" >&6; }
25904 fi
25905
25906
25907 fi
25908 if test -z "$ac_cv_prog_STRIP"; then
25909 ac_ct_STRIP=$STRIP
25910 # Extract the first word of "strip", so it can be a program name with args.
25911 set dummy strip; ac_word=$2
25912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25913 $as_echo_n "checking for $ac_word... " >&6; }
25914 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
25915 $as_echo_n "(cached) " >&6
25916 else
25917 if test -n "$ac_ct_STRIP"; then
25918 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
25919 else
25920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25921 for as_dir in $PATH
25922 do
25923 IFS=$as_save_IFS
25924 test -z "$as_dir" && as_dir=.
25925 for ac_exec_ext in '' $ac_executable_extensions; do
25926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25927 ac_cv_prog_ac_ct_STRIP="strip"
25928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25929 break 2
25930 fi
25931 done
25932 done
25933 IFS=$as_save_IFS
25934
25960
25961
25962 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25963
25964 # First separate the path from the arguments. This will split at the first
25965 # space.
25966 complete="$STRIP"
25967 path="${complete%% *}"
25968 tmp="$complete EOL"
25969 arguments="${tmp#* }"
25970
25971 # Input might be given as Windows format, start by converting to
25972 # unix format.
25973 new_path=`$CYGPATH -u "$path"`
25974
25975 # Now try to locate executable using which
25976 new_path=`$WHICH "$new_path" 2> /dev/null`
25977 # bat and cmd files are not always considered executable in cygwin causing which
25978 # to not find them
25979 if test "x$new_path" = x \
25980 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
25981 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
25982 new_path=`$CYGPATH -u "$path"`
25983 fi
25984 if test "x$new_path" = x; then
25985 # Oops. Which didn't find the executable.
25986 # The splitting of arguments from the executable at a space might have been incorrect,
25987 # since paths with space are more likely in Windows. Give it another try with the whole
25988 # argument.
25989 path="$complete"
25990 arguments="EOL"
25991 new_path=`$CYGPATH -u "$path"`
25992 new_path=`$WHICH "$new_path" 2> /dev/null`
25993 # bat and cmd files are not always considered executable in cygwin causing which
25994 # to not find them
25995 if test "x$new_path" = x \
25996 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
25997 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
25998 new_path=`$CYGPATH -u "$path"`
25999 fi
26000 if test "x$new_path" = x; then
26001 # It's still not found. Now this is an unrecoverable error.
26002 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5
26003 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;}
26004 has_space=`$ECHO "$complete" | $GREP " "`
26005 if test "x$has_space" != x; then
26006 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
26007 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
26008 fi
26009 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5
26010 fi
26011 fi
26012
26013 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
26014 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
26015 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
26016 # "foo.exe" is OK but "foo" is an error.
26219 fi
26220
26221 if test "x$complete" != "x$new_complete"; then
26222 STRIP="$new_complete"
26223 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5
26224 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;}
26225 fi
26226
26227 fi
26228
26229 # objcopy is used for moving debug symbols to separate files when
26230 # full debug symbols are enabled.
26231 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then
26232 if test -n "$ac_tool_prefix"; then
26233 for ac_prog in gobjcopy objcopy
26234 do
26235 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
26236 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
26237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26238 $as_echo_n "checking for $ac_word... " >&6; }
26239 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
26240 $as_echo_n "(cached) " >&6
26241 else
26242 if test -n "$OBJCOPY"; then
26243 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
26244 else
26245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26246 for as_dir in $PATH
26247 do
26248 IFS=$as_save_IFS
26249 test -z "$as_dir" && as_dir=.
26250 for ac_exec_ext in '' $ac_executable_extensions; do
26251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26252 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog"
26253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26254 break 2
26255 fi
26256 done
26257 done
26258 IFS=$as_save_IFS
26259
26263 if test -n "$OBJCOPY"; then
26264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
26265 $as_echo "$OBJCOPY" >&6; }
26266 else
26267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26268 $as_echo "no" >&6; }
26269 fi
26270
26271
26272 test -n "$OBJCOPY" && break
26273 done
26274 fi
26275 if test -z "$OBJCOPY"; then
26276 ac_ct_OBJCOPY=$OBJCOPY
26277 for ac_prog in gobjcopy objcopy
26278 do
26279 # Extract the first word of "$ac_prog", so it can be a program name with args.
26280 set dummy $ac_prog; ac_word=$2
26281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26282 $as_echo_n "checking for $ac_word... " >&6; }
26283 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
26284 $as_echo_n "(cached) " >&6
26285 else
26286 if test -n "$ac_ct_OBJCOPY"; then
26287 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
26288 else
26289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26290 for as_dir in $PATH
26291 do
26292 IFS=$as_save_IFS
26293 test -z "$as_dir" && as_dir=.
26294 for ac_exec_ext in '' $ac_executable_extensions; do
26295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26296 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog"
26297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26298 break 2
26299 fi
26300 done
26301 done
26302 IFS=$as_save_IFS
26303
26333 if test -n "$OBJCOPY"; then
26334
26335 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
26336
26337 # First separate the path from the arguments. This will split at the first
26338 # space.
26339 complete="$OBJCOPY"
26340 path="${complete%% *}"
26341 tmp="$complete EOL"
26342 arguments="${tmp#* }"
26343
26344 # Input might be given as Windows format, start by converting to
26345 # unix format.
26346 new_path=`$CYGPATH -u "$path"`
26347
26348 # Now try to locate executable using which
26349 new_path=`$WHICH "$new_path" 2> /dev/null`
26350 # bat and cmd files are not always considered executable in cygwin causing which
26351 # to not find them
26352 if test "x$new_path" = x \
26353 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
26354 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
26355 new_path=`$CYGPATH -u "$path"`
26356 fi
26357 if test "x$new_path" = x; then
26358 # Oops. Which didn't find the executable.
26359 # The splitting of arguments from the executable at a space might have been incorrect,
26360 # since paths with space are more likely in Windows. Give it another try with the whole
26361 # argument.
26362 path="$complete"
26363 arguments="EOL"
26364 new_path=`$CYGPATH -u "$path"`
26365 new_path=`$WHICH "$new_path" 2> /dev/null`
26366 # bat and cmd files are not always considered executable in cygwin causing which
26367 # to not find them
26368 if test "x$new_path" = x \
26369 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
26370 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
26371 new_path=`$CYGPATH -u "$path"`
26372 fi
26373 if test "x$new_path" = x; then
26374 # It's still not found. Now this is an unrecoverable error.
26375 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5
26376 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;}
26377 has_space=`$ECHO "$complete" | $GREP " "`
26378 if test "x$has_space" != x; then
26379 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
26380 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
26381 fi
26382 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5
26383 fi
26384 fi
26385
26386 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
26387 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
26388 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
26389 # "foo.exe" is OK but "foo" is an error.
26590 else
26591 new_complete="$new_path"
26592 fi
26593
26594 if test "x$complete" != "x$new_complete"; then
26595 OBJCOPY="$new_complete"
26596 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJCOPY to \"$new_complete\"" >&5
26597 $as_echo "$as_me: Rewriting OBJCOPY to \"$new_complete\"" >&6;}
26598 fi
26599
26600 fi
26601 fi
26602
26603 if test -n "$ac_tool_prefix"; then
26604 for ac_prog in gobjdump objdump
26605 do
26606 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
26607 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
26608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26609 $as_echo_n "checking for $ac_word... " >&6; }
26610 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
26611 $as_echo_n "(cached) " >&6
26612 else
26613 if test -n "$OBJDUMP"; then
26614 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
26615 else
26616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26617 for as_dir in $PATH
26618 do
26619 IFS=$as_save_IFS
26620 test -z "$as_dir" && as_dir=.
26621 for ac_exec_ext in '' $ac_executable_extensions; do
26622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26623 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog"
26624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26625 break 2
26626 fi
26627 done
26628 done
26629 IFS=$as_save_IFS
26630
26634 if test -n "$OBJDUMP"; then
26635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
26636 $as_echo "$OBJDUMP" >&6; }
26637 else
26638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26639 $as_echo "no" >&6; }
26640 fi
26641
26642
26643 test -n "$OBJDUMP" && break
26644 done
26645 fi
26646 if test -z "$OBJDUMP"; then
26647 ac_ct_OBJDUMP=$OBJDUMP
26648 for ac_prog in gobjdump objdump
26649 do
26650 # Extract the first word of "$ac_prog", so it can be a program name with args.
26651 set dummy $ac_prog; ac_word=$2
26652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26653 $as_echo_n "checking for $ac_word... " >&6; }
26654 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
26655 $as_echo_n "(cached) " >&6
26656 else
26657 if test -n "$ac_ct_OBJDUMP"; then
26658 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
26659 else
26660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26661 for as_dir in $PATH
26662 do
26663 IFS=$as_save_IFS
26664 test -z "$as_dir" && as_dir=.
26665 for ac_exec_ext in '' $ac_executable_extensions; do
26666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26667 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog"
26668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26669 break 2
26670 fi
26671 done
26672 done
26673 IFS=$as_save_IFS
26674
26704 # Only used for compare.sh; we can live without it. BASIC_FIXUP_EXECUTABLE bails if argument is missing.
26705
26706 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
26707
26708 # First separate the path from the arguments. This will split at the first
26709 # space.
26710 complete="$OBJDUMP"
26711 path="${complete%% *}"
26712 tmp="$complete EOL"
26713 arguments="${tmp#* }"
26714
26715 # Input might be given as Windows format, start by converting to
26716 # unix format.
26717 new_path=`$CYGPATH -u "$path"`
26718
26719 # Now try to locate executable using which
26720 new_path=`$WHICH "$new_path" 2> /dev/null`
26721 # bat and cmd files are not always considered executable in cygwin causing which
26722 # to not find them
26723 if test "x$new_path" = x \
26724 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
26725 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
26726 new_path=`$CYGPATH -u "$path"`
26727 fi
26728 if test "x$new_path" = x; then
26729 # Oops. Which didn't find the executable.
26730 # The splitting of arguments from the executable at a space might have been incorrect,
26731 # since paths with space are more likely in Windows. Give it another try with the whole
26732 # argument.
26733 path="$complete"
26734 arguments="EOL"
26735 new_path=`$CYGPATH -u "$path"`
26736 new_path=`$WHICH "$new_path" 2> /dev/null`
26737 # bat and cmd files are not always considered executable in cygwin causing which
26738 # to not find them
26739 if test "x$new_path" = x \
26740 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
26741 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
26742 new_path=`$CYGPATH -u "$path"`
26743 fi
26744 if test "x$new_path" = x; then
26745 # It's still not found. Now this is an unrecoverable error.
26746 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5
26747 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;}
26748 has_space=`$ECHO "$complete" | $GREP " "`
26749 if test "x$has_space" != x; then
26750 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
26751 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
26752 fi
26753 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5
26754 fi
26755 fi
26756
26757 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
26758 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
26759 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
26760 # "foo.exe" is OK but "foo" is an error.
26958 # Now join together the path and the arguments once again
26959 if test "x$arguments" != xEOL; then
26960 new_complete="$new_path ${arguments% *}"
26961 else
26962 new_complete="$new_path"
26963 fi
26964
26965 if test "x$complete" != "x$new_complete"; then
26966 OBJDUMP="$new_complete"
26967 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJDUMP to \"$new_complete\"" >&5
26968 $as_echo "$as_me: Rewriting OBJDUMP to \"$new_complete\"" >&6;}
26969 fi
26970
26971 fi
26972
26973 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
26974 # Extract the first word of "lipo", so it can be a program name with args.
26975 set dummy lipo; ac_word=$2
26976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26977 $as_echo_n "checking for $ac_word... " >&6; }
26978 if test "${ac_cv_path_LIPO+set}" = set; then :
26979 $as_echo_n "(cached) " >&6
26980 else
26981 case $LIPO in
26982 [\\/]* | ?:[\\/]*)
26983 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path.
26984 ;;
26985 *)
26986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26987 for as_dir in $PATH
26988 do
26989 IFS=$as_save_IFS
26990 test -z "$as_dir" && as_dir=.
26991 for ac_exec_ext in '' $ac_executable_extensions; do
26992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26993 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext"
26994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26995 break 2
26996 fi
26997 done
26998 done
27013
27014
27015 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
27016
27017 # First separate the path from the arguments. This will split at the first
27018 # space.
27019 complete="$LIPO"
27020 path="${complete%% *}"
27021 tmp="$complete EOL"
27022 arguments="${tmp#* }"
27023
27024 # Input might be given as Windows format, start by converting to
27025 # unix format.
27026 new_path=`$CYGPATH -u "$path"`
27027
27028 # Now try to locate executable using which
27029 new_path=`$WHICH "$new_path" 2> /dev/null`
27030 # bat and cmd files are not always considered executable in cygwin causing which
27031 # to not find them
27032 if test "x$new_path" = x \
27033 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
27034 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
27035 new_path=`$CYGPATH -u "$path"`
27036 fi
27037 if test "x$new_path" = x; then
27038 # Oops. Which didn't find the executable.
27039 # The splitting of arguments from the executable at a space might have been incorrect,
27040 # since paths with space are more likely in Windows. Give it another try with the whole
27041 # argument.
27042 path="$complete"
27043 arguments="EOL"
27044 new_path=`$CYGPATH -u "$path"`
27045 new_path=`$WHICH "$new_path" 2> /dev/null`
27046 # bat and cmd files are not always considered executable in cygwin causing which
27047 # to not find them
27048 if test "x$new_path" = x \
27049 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
27050 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
27051 new_path=`$CYGPATH -u "$path"`
27052 fi
27053 if test "x$new_path" = x; then
27054 # It's still not found. Now this is an unrecoverable error.
27055 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5
27056 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;}
27057 has_space=`$ECHO "$complete" | $GREP " "`
27058 if test "x$has_space" != x; then
27059 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
27060 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
27061 fi
27062 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5
27063 fi
27064 fi
27065
27066 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
27067 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
27068 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
27069 # "foo.exe" is OK but "foo" is an error.
27273
27274 if test "x$complete" != "x$new_complete"; then
27275 LIPO="$new_complete"
27276 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LIPO to \"$new_complete\"" >&5
27277 $as_echo "$as_me: Rewriting LIPO to \"$new_complete\"" >&6;}
27278 fi
27279
27280 fi
27281
27282 # Restore old path without tools dir
27283 PATH="$OLD_PATH"
27284
27285
27286 # FIXME: Currently we must test this after paths but before flags. Fix!
27287
27288 # And we can test some aspects on the target using configure macros.
27289
27290
27291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
27292 $as_echo_n "checking for ANSI C header files... " >&6; }
27293 if test "${ac_cv_header_stdc+set}" = set; then :
27294 $as_echo_n "(cached) " >&6
27295 else
27296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27297 /* end confdefs.h. */
27298 #include <stdlib.h>
27299 #include <stdarg.h>
27300 #include <string.h>
27301 #include <float.h>
27302
27303 int
27304 main ()
27305 {
27306
27307 ;
27308 return 0;
27309 }
27310 _ACEOF
27311 if ac_fn_cxx_try_compile "$LINENO"; then :
27312 ac_cv_header_stdc=yes
27313 else
27449 # to prevent emitting warning...
27450 ADDED_CFLAGS=" -m${OPENJDK_TARGET_CPU_BITS}"
27451 ADDED_CXXFLAGS=" -m${OPENJDK_TARGET_CPU_BITS}"
27452 ADDED_LDFLAGS=" -m${OPENJDK_TARGET_CPU_BITS}"
27453
27454 CFLAGS="${CFLAGS}${ADDED_CFLAGS}"
27455 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}"
27456 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}"
27457
27458 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}"
27459 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}"
27460 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}"
27461
27462 fi
27463 fi
27464
27465 # Make compilation sanity check
27466 for ac_header in stdio.h
27467 do :
27468 ac_fn_cxx_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
27469 if test "x$ac_cv_header_stdio_h" = x""yes; then :
27470 cat >>confdefs.h <<_ACEOF
27471 #define HAVE_STDIO_H 1
27472 _ACEOF
27473
27474 else
27475
27476 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to compile stdio.h. This likely implies missing compile dependencies." >&5
27477 $as_echo "$as_me: Failed to compile stdio.h. This likely implies missing compile dependencies." >&6;}
27478 if test "x$COMPILE_TYPE" = xreduced; then
27479 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed." >&5
27480 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed." >&6;}
27481 elif test "x$COMPILE_TYPE" = xcross; then
27482 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5
27483 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;}
27484 fi
27485 as_fn_error $? "Cannot continue." "$LINENO" 5
27486
27487 fi
27488
27489 done
27490
27491
27492 # The cast to long int works around a bug in the HP C Compiler
27493 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27494 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27495 # This bug is HP SR number 8606223364.
27496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
27497 $as_echo_n "checking size of int *... " >&6; }
27498 if test "${ac_cv_sizeof_int_p+set}" = set; then :
27499 $as_echo_n "(cached) " >&6
27500 else
27501 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then :
27502
27503 else
27504 if test "$ac_cv_type_int_p" = yes; then
27505 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27506 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27507 as_fn_error 77 "cannot compute sizeof (int *)
27508 See \`config.log' for more details" "$LINENO" 5 ; }
27509 else
27510 ac_cv_sizeof_int_p=0
27511 fi
27512 fi
27513
27514 fi
27515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
27516 $as_echo "$ac_cv_sizeof_int_p" >&6; }
27517
27518
27519
27520 cat >>confdefs.h <<_ACEOF
27521 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
27522 _ACEOF
27523
27524
27525
27526 if test "x$SIZEOF_INT_P" != "x$ac_cv_sizeof_int_p"; then
27527 # Workaround autoconf bug, see http://lists.gnu.org/archive/html/autoconf/2010-07/msg00004.html
27528 SIZEOF_INT_P="$ac_cv_sizeof_int_p"
27535 else
27536 TESTED_TARGET_CPU_BITS=`expr 8 \* $SIZEOF_INT_P`
27537
27538 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then
27539 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
27540 fi
27541 fi
27542
27543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target address size" >&5
27544 $as_echo_n "checking for target address size... " >&6; }
27545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_CPU_BITS bits" >&5
27546 $as_echo "$OPENJDK_TARGET_CPU_BITS bits" >&6; }
27547
27548
27549 ###############################################################################
27550 #
27551 # Is the target little of big endian?
27552 #
27553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
27554 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
27555 if test "${ac_cv_c_bigendian+set}" = set; then :
27556 $as_echo_n "(cached) " >&6
27557 else
27558 ac_cv_c_bigendian=unknown
27559 # See if we're dealing with a universal compiler.
27560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27561 /* end confdefs.h. */
27562 #ifndef __APPLE_CC__
27563 not a universal capable compiler
27564 #endif
27565 typedef int dummy;
27566
27567 _ACEOF
27568 if ac_fn_cxx_try_compile "$LINENO"; then :
27569
27570 # Check for potential -arch flags. It is not universal unless
27571 # there are at least two -arch flags with different values.
27572 ac_arch=
27573 ac_prev=
27574 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
27575 if test -n "$ac_prev"; then
28535 fi
28536 fi
28537 fi
28538
28539 # Now let autoconf do it's magic
28540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
28541 $as_echo_n "checking for X... " >&6; }
28542
28543
28544 # Check whether --with-x was given.
28545 if test "${with_x+set}" = set; then :
28546 withval=$with_x;
28547 fi
28548
28549 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
28550 if test "x$with_x" = xno; then
28551 # The user explicitly disabled X.
28552 have_x=disabled
28553 else
28554 case $x_includes,$x_libraries in #(
28555 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
28556 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
28557 $as_echo_n "(cached) " >&6
28558 else
28559 # One or both of the vars are not set, and there is no cached value.
28560 ac_x_includes=no ac_x_libraries=no
28561 rm -f -r conftest.dir
28562 if mkdir conftest.dir; then
28563 cd conftest.dir
28564 cat >Imakefile <<'_ACEOF'
28565 incroot:
28566 @echo incroot='${INCROOT}'
28567 usrlibdir:
28568 @echo usrlibdir='${USRLIBDIR}'
28569 libdir:
28570 @echo libdir='${LIBDIR}'
28571 _ACEOF
28572 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
28573 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
28574 for ac_var in incroot usrlibdir libdir; do
28575 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
28576 done
28813 /* Override any GCC internal prototype to avoid an error.
28814 Use char because int might match the return type of a GCC
28815 builtin and then its argument prototype would still apply. */
28816 #ifdef __cplusplus
28817 extern "C"
28818 #endif
28819 char XOpenDisplay ();
28820 int
28821 main ()
28822 {
28823 return XOpenDisplay ();
28824 ;
28825 return 0;
28826 }
28827 _ACEOF
28828 if ac_fn_cxx_try_link "$LINENO"; then :
28829
28830 else
28831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
28832 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
28833 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
28834 $as_echo_n "(cached) " >&6
28835 else
28836 ac_check_lib_save_LIBS=$LIBS
28837 LIBS="-ldnet $LIBS"
28838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28839 /* end confdefs.h. */
28840
28841 /* Override any GCC internal prototype to avoid an error.
28842 Use char because int might match the return type of a GCC
28843 builtin and then its argument prototype would still apply. */
28844 #ifdef __cplusplus
28845 extern "C"
28846 #endif
28847 char dnet_ntoa ();
28848 int
28849 main ()
28850 {
28851 return dnet_ntoa ();
28852 ;
28853 return 0;
28854 }
28855 _ACEOF
28856 if ac_fn_cxx_try_link "$LINENO"; then :
28857 ac_cv_lib_dnet_dnet_ntoa=yes
28858 else
28859 ac_cv_lib_dnet_dnet_ntoa=no
28860 fi
28861 rm -f core conftest.err conftest.$ac_objext \
28862 conftest$ac_exeext conftest.$ac_ext
28863 LIBS=$ac_check_lib_save_LIBS
28864 fi
28865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
28866 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
28867 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
28868 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
28869 fi
28870
28871 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
28872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
28873 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
28874 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
28875 $as_echo_n "(cached) " >&6
28876 else
28877 ac_check_lib_save_LIBS=$LIBS
28878 LIBS="-ldnet_stub $LIBS"
28879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28880 /* end confdefs.h. */
28881
28882 /* Override any GCC internal prototype to avoid an error.
28883 Use char because int might match the return type of a GCC
28884 builtin and then its argument prototype would still apply. */
28885 #ifdef __cplusplus
28886 extern "C"
28887 #endif
28888 char dnet_ntoa ();
28889 int
28890 main ()
28891 {
28892 return dnet_ntoa ();
28893 ;
28894 return 0;
28895 }
28896 _ACEOF
28897 if ac_fn_cxx_try_link "$LINENO"; then :
28898 ac_cv_lib_dnet_stub_dnet_ntoa=yes
28899 else
28900 ac_cv_lib_dnet_stub_dnet_ntoa=no
28901 fi
28902 rm -f core conftest.err conftest.$ac_objext \
28903 conftest$ac_exeext conftest.$ac_ext
28904 LIBS=$ac_check_lib_save_LIBS
28905 fi
28906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
28907 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
28908 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
28909 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
28910 fi
28911
28912 fi
28913 fi
28914 rm -f core conftest.err conftest.$ac_objext \
28915 conftest$ac_exeext conftest.$ac_ext
28916 LIBS="$ac_xsave_LIBS"
28917
28918 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
28919 # to get the SysV transport functions.
28920 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
28921 # needs -lnsl.
28922 # The nsl library prevents programs from opening the X display
28923 # on Irix 5.2, according to T.E. Dickey.
28924 # The functions gethostbyname, getservbyname, and inet_addr are
28925 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
28926 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
28927 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
28928
28929 fi
28930
28931 if test $ac_cv_func_gethostbyname = no; then
28932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
28933 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
28934 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
28935 $as_echo_n "(cached) " >&6
28936 else
28937 ac_check_lib_save_LIBS=$LIBS
28938 LIBS="-lnsl $LIBS"
28939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28940 /* end confdefs.h. */
28941
28942 /* Override any GCC internal prototype to avoid an error.
28943 Use char because int might match the return type of a GCC
28944 builtin and then its argument prototype would still apply. */
28945 #ifdef __cplusplus
28946 extern "C"
28947 #endif
28948 char gethostbyname ();
28949 int
28950 main ()
28951 {
28952 return gethostbyname ();
28953 ;
28954 return 0;
28955 }
28956 _ACEOF
28957 if ac_fn_cxx_try_link "$LINENO"; then :
28958 ac_cv_lib_nsl_gethostbyname=yes
28959 else
28960 ac_cv_lib_nsl_gethostbyname=no
28961 fi
28962 rm -f core conftest.err conftest.$ac_objext \
28963 conftest$ac_exeext conftest.$ac_ext
28964 LIBS=$ac_check_lib_save_LIBS
28965 fi
28966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
28967 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
28968 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
28969 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
28970 fi
28971
28972 if test $ac_cv_lib_nsl_gethostbyname = no; then
28973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
28974 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
28975 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
28976 $as_echo_n "(cached) " >&6
28977 else
28978 ac_check_lib_save_LIBS=$LIBS
28979 LIBS="-lbsd $LIBS"
28980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28981 /* end confdefs.h. */
28982
28983 /* Override any GCC internal prototype to avoid an error.
28984 Use char because int might match the return type of a GCC
28985 builtin and then its argument prototype would still apply. */
28986 #ifdef __cplusplus
28987 extern "C"
28988 #endif
28989 char gethostbyname ();
28990 int
28991 main ()
28992 {
28993 return gethostbyname ();
28994 ;
28995 return 0;
28996 }
28997 _ACEOF
28998 if ac_fn_cxx_try_link "$LINENO"; then :
28999 ac_cv_lib_bsd_gethostbyname=yes
29000 else
29001 ac_cv_lib_bsd_gethostbyname=no
29002 fi
29003 rm -f core conftest.err conftest.$ac_objext \
29004 conftest$ac_exeext conftest.$ac_ext
29005 LIBS=$ac_check_lib_save_LIBS
29006 fi
29007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
29008 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
29009 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
29010 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
29011 fi
29012
29013 fi
29014 fi
29015
29016 # lieder@skyler.mavd.honeywell.com says without -lsocket,
29017 # socket/setsockopt and other routines are undefined under SCO ODT
29018 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
29019 # on later versions), says Simon Leinen: it contains gethostby*
29020 # variants that don't use the name server (or something). -lsocket
29021 # must be given before -lnsl if both are needed. We assume that
29022 # if connect needs -lnsl, so does gethostbyname.
29023 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect"
29024 if test "x$ac_cv_func_connect" = x""yes; then :
29025
29026 fi
29027
29028 if test $ac_cv_func_connect = no; then
29029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
29030 $as_echo_n "checking for connect in -lsocket... " >&6; }
29031 if test "${ac_cv_lib_socket_connect+set}" = set; then :
29032 $as_echo_n "(cached) " >&6
29033 else
29034 ac_check_lib_save_LIBS=$LIBS
29035 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
29036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29037 /* end confdefs.h. */
29038
29039 /* Override any GCC internal prototype to avoid an error.
29040 Use char because int might match the return type of a GCC
29041 builtin and then its argument prototype would still apply. */
29042 #ifdef __cplusplus
29043 extern "C"
29044 #endif
29045 char connect ();
29046 int
29047 main ()
29048 {
29049 return connect ();
29050 ;
29051 return 0;
29052 }
29053 _ACEOF
29054 if ac_fn_cxx_try_link "$LINENO"; then :
29055 ac_cv_lib_socket_connect=yes
29056 else
29057 ac_cv_lib_socket_connect=no
29058 fi
29059 rm -f core conftest.err conftest.$ac_objext \
29060 conftest$ac_exeext conftest.$ac_ext
29061 LIBS=$ac_check_lib_save_LIBS
29062 fi
29063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
29064 $as_echo "$ac_cv_lib_socket_connect" >&6; }
29065 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
29066 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
29067 fi
29068
29069 fi
29070
29071 # Guillermo Gomez says -lposix is necessary on A/UX.
29072 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove"
29073 if test "x$ac_cv_func_remove" = x""yes; then :
29074
29075 fi
29076
29077 if test $ac_cv_func_remove = no; then
29078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
29079 $as_echo_n "checking for remove in -lposix... " >&6; }
29080 if test "${ac_cv_lib_posix_remove+set}" = set; then :
29081 $as_echo_n "(cached) " >&6
29082 else
29083 ac_check_lib_save_LIBS=$LIBS
29084 LIBS="-lposix $LIBS"
29085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29086 /* end confdefs.h. */
29087
29088 /* Override any GCC internal prototype to avoid an error.
29089 Use char because int might match the return type of a GCC
29090 builtin and then its argument prototype would still apply. */
29091 #ifdef __cplusplus
29092 extern "C"
29093 #endif
29094 char remove ();
29095 int
29096 main ()
29097 {
29098 return remove ();
29099 ;
29100 return 0;
29101 }
29102 _ACEOF
29103 if ac_fn_cxx_try_link "$LINENO"; then :
29104 ac_cv_lib_posix_remove=yes
29105 else
29106 ac_cv_lib_posix_remove=no
29107 fi
29108 rm -f core conftest.err conftest.$ac_objext \
29109 conftest$ac_exeext conftest.$ac_ext
29110 LIBS=$ac_check_lib_save_LIBS
29111 fi
29112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
29113 $as_echo "$ac_cv_lib_posix_remove" >&6; }
29114 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
29115 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
29116 fi
29117
29118 fi
29119
29120 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
29121 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
29122 if test "x$ac_cv_func_shmat" = x""yes; then :
29123
29124 fi
29125
29126 if test $ac_cv_func_shmat = no; then
29127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
29128 $as_echo_n "checking for shmat in -lipc... " >&6; }
29129 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
29130 $as_echo_n "(cached) " >&6
29131 else
29132 ac_check_lib_save_LIBS=$LIBS
29133 LIBS="-lipc $LIBS"
29134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29135 /* end confdefs.h. */
29136
29137 /* Override any GCC internal prototype to avoid an error.
29138 Use char because int might match the return type of a GCC
29139 builtin and then its argument prototype would still apply. */
29140 #ifdef __cplusplus
29141 extern "C"
29142 #endif
29143 char shmat ();
29144 int
29145 main ()
29146 {
29147 return shmat ();
29148 ;
29149 return 0;
29150 }
29151 _ACEOF
29152 if ac_fn_cxx_try_link "$LINENO"; then :
29153 ac_cv_lib_ipc_shmat=yes
29154 else
29155 ac_cv_lib_ipc_shmat=no
29156 fi
29157 rm -f core conftest.err conftest.$ac_objext \
29158 conftest$ac_exeext conftest.$ac_ext
29159 LIBS=$ac_check_lib_save_LIBS
29160 fi
29161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
29162 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
29163 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
29164 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
29165 fi
29166
29167 fi
29168 fi
29169
29170 # Check for libraries that X11R6 Xt/Xaw programs need.
29171 ac_save_LDFLAGS=$LDFLAGS
29172 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
29173 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
29174 # check for ICE first), but we must link in the order -lSM -lICE or
29175 # we get undefined symbols. So assume we have SM if we have ICE.
29176 # These have to be linked with before -lX11, unlike the other
29177 # libraries we check for below, so use a different variable.
29178 # John Interrante, Karl Berry
29179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
29180 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
29181 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
29182 $as_echo_n "(cached) " >&6
29183 else
29184 ac_check_lib_save_LIBS=$LIBS
29185 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
29186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29187 /* end confdefs.h. */
29188
29189 /* Override any GCC internal prototype to avoid an error.
29190 Use char because int might match the return type of a GCC
29191 builtin and then its argument prototype would still apply. */
29192 #ifdef __cplusplus
29193 extern "C"
29194 #endif
29195 char IceConnectionNumber ();
29196 int
29197 main ()
29198 {
29199 return IceConnectionNumber ();
29200 ;
29201 return 0;
29202 }
29203 _ACEOF
29204 if ac_fn_cxx_try_link "$LINENO"; then :
29205 ac_cv_lib_ICE_IceConnectionNumber=yes
29206 else
29207 ac_cv_lib_ICE_IceConnectionNumber=no
29208 fi
29209 rm -f core conftest.err conftest.$ac_objext \
29210 conftest$ac_exeext conftest.$ac_ext
29211 LIBS=$ac_check_lib_save_LIBS
29212 fi
29213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
29214 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
29215 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
29216 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
29217 fi
29218
29219 LDFLAGS=$ac_save_LDFLAGS
29220
29221 fi
29222
29223
29224 if test "x$no_x" = xyes && test "x$X11_NOT_NEEDED" != xyes; then
29225
29226 # Print a helpful message on how to acquire the necessary build dependency.
29227 # x11 is the help tag: freetyp2, cups, pulse, alsa etc
29228 MISSING_DEPENDENCY=x11
29229 PKGHANDLER_COMMAND=
29230
29231 case $PKGHANDLER in
29232 apt-get)
29233 apt_help $MISSING_DEPENDENCY ;;
29234 yum)
29235 yum_help $MISSING_DEPENDENCY ;;
30202 pkgutil_help $MISSING_DEPENDENCY ;;
30203 pkgadd)
30204 pkgadd_help $MISSING_DEPENDENCY ;;
30205 * )
30206 break ;;
30207 esac
30208
30209 if test "x$PKGHANDLER_COMMAND" != x; then
30210 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
30211 fi
30212
30213 as_fn_error $? "Could not find freetype2! $HELP_MSG " "$LINENO" 5
30214 fi
30215
30216 if test "x$OPENJDK_TARGET_OS" != xwindows; then
30217 # AC_CHECK_LIB does not support use of cl.exe
30218 PREV_LDFLAGS="$LDFLAGS"
30219 LDFLAGS="$FREETYPE2_LIBS"
30220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
30221 $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
30222 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
30223 $as_echo_n "(cached) " >&6
30224 else
30225 ac_check_lib_save_LIBS=$LIBS
30226 LIBS="-lfreetype $LIBS"
30227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30228 /* end confdefs.h. */
30229
30230 /* Override any GCC internal prototype to avoid an error.
30231 Use char because int might match the return type of a GCC
30232 builtin and then its argument prototype would still apply. */
30233 #ifdef __cplusplus
30234 extern "C"
30235 #endif
30236 char FT_Init_FreeType ();
30237 int
30238 main ()
30239 {
30240 return FT_Init_FreeType ();
30241 ;
30242 return 0;
30243 }
30244 _ACEOF
30245 if ac_fn_cxx_try_link "$LINENO"; then :
30246 ac_cv_lib_freetype_FT_Init_FreeType=yes
30247 else
30248 ac_cv_lib_freetype_FT_Init_FreeType=no
30249 fi
30250 rm -f core conftest.err conftest.$ac_objext \
30251 conftest$ac_exeext conftest.$ac_ext
30252 LIBS=$ac_check_lib_save_LIBS
30253 fi
30254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
30255 $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
30256 if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
30257 FREETYPE2_FOUND=true
30258 else
30259 as_fn_error $? "Could not find freetype2! $HELP_MSG " "$LINENO" 5
30260 fi
30261
30262 LDFLAGS="$PREV_LDFLAGS"
30263 fi
30264 fi
30265
30266
30267
30268
30269
30270
30271
30272
30273
30274 ###############################################################################
30275 #
30276 # Check for alsa headers and libraries. Used on Linux/GNU systems.
30524 # Put the nasty error message in config.log where it belongs
30525 echo "$ALSA_PKG_ERRORS" >&5
30526
30527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30528 $as_echo "no" >&6; }
30529 ALSA_FOUND=no
30530 elif test $pkg_failed = untried; then
30531 ALSA_FOUND=no
30532 else
30533 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
30534 ALSA_LIBS=$pkg_cv_ALSA_LIBS
30535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30536 $as_echo "yes" >&6; }
30537 ALSA_FOUND=yes
30538 fi
30539 fi
30540 if test "x$ALSA_FOUND" = xno; then
30541 for ac_header in alsa/asoundlib.h
30542 do :
30543 ac_fn_cxx_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
30544 if test "x$ac_cv_header_alsa_asoundlib_h" = x""yes; then :
30545 cat >>confdefs.h <<_ACEOF
30546 #define HAVE_ALSA_ASOUNDLIB_H 1
30547 _ACEOF
30548 ALSA_FOUND=yes
30549 ALSA_CFLAGS=-Iignoreme
30550 ALSA_LIBS=-lasound
30551 DEFAULT_ALSA=yes
30552 else
30553 ALSA_FOUND=no
30554 fi
30555
30556 done
30557
30558 fi
30559 if test "x$ALSA_FOUND" = xno; then
30560
30561 # Print a helpful message on how to acquire the necessary build dependency.
30562 # alsa is the help tag: freetyp2, cups, pulse, alsa etc
30563 MISSING_DEPENDENCY=alsa
30564 PKGHANDLER_COMMAND=
30583 fi
30584
30585 as_fn_error $? "Could not find alsa! $HELP_MSG " "$LINENO" 5
30586 fi
30587 fi
30588
30589
30590
30591
30592
30593
30594
30595 ###############################################################################
30596 #
30597 # Check for the jpeg library
30598 #
30599
30600 USE_EXTERNAL_LIBJPEG=true
30601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ljpeg" >&5
30602 $as_echo_n "checking for main in -ljpeg... " >&6; }
30603 if test "${ac_cv_lib_jpeg_main+set}" = set; then :
30604 $as_echo_n "(cached) " >&6
30605 else
30606 ac_check_lib_save_LIBS=$LIBS
30607 LIBS="-ljpeg $LIBS"
30608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30609 /* end confdefs.h. */
30610
30611
30612 int
30613 main ()
30614 {
30615 return main ();
30616 ;
30617 return 0;
30618 }
30619 _ACEOF
30620 if ac_fn_cxx_try_link "$LINENO"; then :
30621 ac_cv_lib_jpeg_main=yes
30622 else
30623 ac_cv_lib_jpeg_main=no
30624 fi
30625 rm -f core conftest.err conftest.$ac_objext \
30626 conftest$ac_exeext conftest.$ac_ext
30627 LIBS=$ac_check_lib_save_LIBS
30628 fi
30629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_main" >&5
30630 $as_echo "$ac_cv_lib_jpeg_main" >&6; }
30631 if test "x$ac_cv_lib_jpeg_main" = x""yes; then :
30632 cat >>confdefs.h <<_ACEOF
30633 #define HAVE_LIBJPEG 1
30634 _ACEOF
30635
30636 LIBS="-ljpeg $LIBS"
30637
30638 else
30639 USE_EXTERNAL_LIBJPEG=false
30640 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use jpeg decoder bundled with the OpenJDK source" >&5
30641 $as_echo "$as_me: Will use jpeg decoder bundled with the OpenJDK source" >&6;}
30642
30643 fi
30644
30645
30646
30647 ###############################################################################
30648 #
30649 # Check for the gif library
30650 #
30651
30652 USE_EXTERNAL_LIBJPEG=true
30653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgif" >&5
30654 $as_echo_n "checking for main in -lgif... " >&6; }
30655 if test "${ac_cv_lib_gif_main+set}" = set; then :
30656 $as_echo_n "(cached) " >&6
30657 else
30658 ac_check_lib_save_LIBS=$LIBS
30659 LIBS="-lgif $LIBS"
30660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30661 /* end confdefs.h. */
30662
30663
30664 int
30665 main ()
30666 {
30667 return main ();
30668 ;
30669 return 0;
30670 }
30671 _ACEOF
30672 if ac_fn_cxx_try_link "$LINENO"; then :
30673 ac_cv_lib_gif_main=yes
30674 else
30675 ac_cv_lib_gif_main=no
30676 fi
30677 rm -f core conftest.err conftest.$ac_objext \
30678 conftest$ac_exeext conftest.$ac_ext
30679 LIBS=$ac_check_lib_save_LIBS
30680 fi
30681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_main" >&5
30682 $as_echo "$ac_cv_lib_gif_main" >&6; }
30683 if test "x$ac_cv_lib_gif_main" = x""yes; then :
30684 cat >>confdefs.h <<_ACEOF
30685 #define HAVE_LIBGIF 1
30686 _ACEOF
30687
30688 LIBS="-lgif $LIBS"
30689
30690 else
30691 USE_EXTERNAL_LIBGIF=false
30692 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use gif decoder bundled with the OpenJDK source" >&5
30693 $as_echo "$as_me: Will use gif decoder bundled with the OpenJDK source" >&6;}
30694
30695 fi
30696
30697
30698
30699 ###############################################################################
30700 #
30701 # Check for the zlib library
30702 #
30703
30704
30705 # Check whether --with-zlib was given.
30706 if test "${with_zlib+set}" = set; then :
30707 withval=$with_zlib;
30708 fi
30709
30710
30711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
30712 $as_echo_n "checking for compress in -lz... " >&6; }
30713 if test "${ac_cv_lib_z_compress+set}" = set; then :
30714 $as_echo_n "(cached) " >&6
30715 else
30716 ac_check_lib_save_LIBS=$LIBS
30717 LIBS="-lz $LIBS"
30718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30719 /* end confdefs.h. */
30720
30721 /* Override any GCC internal prototype to avoid an error.
30722 Use char because int might match the return type of a GCC
30723 builtin and then its argument prototype would still apply. */
30724 #ifdef __cplusplus
30725 extern "C"
30726 #endif
30727 char compress ();
30728 int
30729 main ()
30730 {
30731 return compress ();
30732 ;
30733 return 0;
30734 }
30735 _ACEOF
30736 if ac_fn_cxx_try_link "$LINENO"; then :
30737 ac_cv_lib_z_compress=yes
30738 else
30739 ac_cv_lib_z_compress=no
30740 fi
30741 rm -f core conftest.err conftest.$ac_objext \
30742 conftest$ac_exeext conftest.$ac_ext
30743 LIBS=$ac_check_lib_save_LIBS
30744 fi
30745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
30746 $as_echo "$ac_cv_lib_z_compress" >&6; }
30747 if test "x$ac_cv_lib_z_compress" = x""yes; then :
30748 ZLIB_FOUND=yes
30749 else
30750 ZLIB_FOUND=no
30751 fi
30752
30753
30754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which zlib to use" >&5
30755 $as_echo_n "checking for which zlib to use... " >&6; }
30756
30757 DEFAULT_ZLIB=bundled
30758 if test "x$OPENJDK_TARGET_OS" = xmacosx; then
30759 #
30760 # On macosx default is system...on others default is
30761 #
30762 DEFAULT_ZLIB=system
30763 fi
30764
30765 if test "x${ZLIB_FOUND}" != "xyes"; then
30766 #
30767 # If we don't find any system...set default to bundled
30820 if ac_fn_cxx_try_link "$LINENO"; then :
30821 has_altzone=yes
30822 else
30823 has_altzone=no
30824 fi
30825 rm -f core conftest.err conftest.$ac_objext \
30826 conftest$ac_exeext conftest.$ac_ext
30827 if test "x$has_altzone" = xyes; then
30828
30829 $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h
30830
30831 fi
30832
30833 ###############################################################################
30834 #
30835 # Check the maths library
30836 #
30837
30838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
30839 $as_echo_n "checking for cos in -lm... " >&6; }
30840 if test "${ac_cv_lib_m_cos+set}" = set; then :
30841 $as_echo_n "(cached) " >&6
30842 else
30843 ac_check_lib_save_LIBS=$LIBS
30844 LIBS="-lm $LIBS"
30845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30846 /* end confdefs.h. */
30847
30848 /* Override any GCC internal prototype to avoid an error.
30849 Use char because int might match the return type of a GCC
30850 builtin and then its argument prototype would still apply. */
30851 #ifdef __cplusplus
30852 extern "C"
30853 #endif
30854 char cos ();
30855 int
30856 main ()
30857 {
30858 return cos ();
30859 ;
30860 return 0;
30861 }
30862 _ACEOF
30863 if ac_fn_cxx_try_link "$LINENO"; then :
30864 ac_cv_lib_m_cos=yes
30865 else
30866 ac_cv_lib_m_cos=no
30867 fi
30868 rm -f core conftest.err conftest.$ac_objext \
30869 conftest$ac_exeext conftest.$ac_ext
30870 LIBS=$ac_check_lib_save_LIBS
30871 fi
30872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
30873 $as_echo "$ac_cv_lib_m_cos" >&6; }
30874 if test "x$ac_cv_lib_m_cos" = x""yes; then :
30875 cat >>confdefs.h <<_ACEOF
30876 #define HAVE_LIBM 1
30877 _ACEOF
30878
30879 LIBS="-lm $LIBS"
30880
30881 else
30882
30883 { $as_echo "$as_me:${as_lineno-$LINENO}: Maths library was not found" >&5
30884 $as_echo "$as_me: Maths library was not found" >&6;}
30885
30886 fi
30887
30888
30889
30890 ###############################################################################
30891 #
30892 # Check for libdl.so
30893
30894 save_LIBS="$LIBS"
30895 LIBS=""
30896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
30897 $as_echo_n "checking for dlopen in -ldl... " >&6; }
30898 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
30899 $as_echo_n "(cached) " >&6
30900 else
30901 ac_check_lib_save_LIBS=$LIBS
30902 LIBS="-ldl $LIBS"
30903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30904 /* end confdefs.h. */
30905
30906 /* Override any GCC internal prototype to avoid an error.
30907 Use char because int might match the return type of a GCC
30908 builtin and then its argument prototype would still apply. */
30909 #ifdef __cplusplus
30910 extern "C"
30911 #endif
30912 char dlopen ();
30913 int
30914 main ()
30915 {
30916 return dlopen ();
30917 ;
30918 return 0;
30919 }
30920 _ACEOF
30921 if ac_fn_cxx_try_link "$LINENO"; then :
30922 ac_cv_lib_dl_dlopen=yes
30923 else
30924 ac_cv_lib_dl_dlopen=no
30925 fi
30926 rm -f core conftest.err conftest.$ac_objext \
30927 conftest$ac_exeext conftest.$ac_ext
30928 LIBS=$ac_check_lib_save_LIBS
30929 fi
30930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
30931 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
30932 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
30933 cat >>confdefs.h <<_ACEOF
30934 #define HAVE_LIBDL 1
30935 _ACEOF
30936
30937 LIBS="-ldl $LIBS"
30938
30939 fi
30940
30941 LIBDL="$LIBS"
30942
30943 LIBS="$save_LIBS"
30944
30945
30946
30947 ###############################################################################
30948 #
30949 # statically link libstdc++ before C++ ABI is stablized on Linux unless
30950 # dynamic build is configured on command line.
30951 #
30952
31556 fi
31557 fi
31558
31559
31560
31561
31562 # Setup use of ccache, if available
31563
31564 # Check whether --enable-ccache was given.
31565 if test "${enable_ccache+set}" = set; then :
31566 enableval=$enable_ccache; ENABLE_CCACHE=${enable_ccache}
31567 else
31568 ENABLE_CCACHE=yes
31569 fi
31570
31571 if test "x$ENABLE_CCACHE" = xyes; then
31572 # Extract the first word of "ccache", so it can be a program name with args.
31573 set dummy ccache; ac_word=$2
31574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31575 $as_echo_n "checking for $ac_word... " >&6; }
31576 if test "${ac_cv_path_CCACHE+set}" = set; then :
31577 $as_echo_n "(cached) " >&6
31578 else
31579 case $CCACHE in
31580 [\\/]* | ?:[\\/]*)
31581 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path.
31582 ;;
31583 *)
31584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31585 for as_dir in $PATH
31586 do
31587 IFS=$as_save_IFS
31588 test -z "$as_dir" && as_dir=.
31589 for ac_exec_ext in '' $ac_executable_extensions; do
31590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31591 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext"
31592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31593 break 2
31594 fi
31595 done
31596 done
31817 "s/'/'\\\\''/g;
31818 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31819 ;; #(
31820 *)
31821 # `set' quotes correctly as required by POSIX, so do not add quotes.
31822 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31823 ;;
31824 esac |
31825 sort
31826 ) |
31827 sed '
31828 /^ac_cv_env_/b end
31829 t clear
31830 :clear
31831 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31832 t end
31833 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31834 :end' >>confcache
31835 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31836 if test -w "$cache_file"; then
31837 test "x$cache_file" != "x/dev/null" &&
31838 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
31839 $as_echo "$as_me: updating cache $cache_file" >&6;}
31840 cat confcache >$cache_file
31841 else
31842 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
31843 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31844 fi
31845 fi
31846 rm -f confcache
31847
31848 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31849 # Let make expand exec_prefix.
31850 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31851
31852 DEFS=-DHAVE_CONFIG_H
31853
31854 ac_libobjs=
31855 ac_ltlibobjs=
31856 U=
31857 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31858 # 1. Remove the extension, and $U if already installed.
31859 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31860 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
31861 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
31862 # will be set to the directory where LIBOBJS objects are built.
31863 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31864 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
31865 done
31866 LIBOBJS=$ac_libobjs
31867
31868 LTLIBOBJS=$ac_ltlibobjs
31869
31870
31871
31872 : ${CONFIG_STATUS=./config.status}
31873 ac_write_fail=0
31874 ac_clean_files_save=$ac_clean_files
31875 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31876 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
31877 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
31878 as_write_fail=0
31879 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
31880 #! $SHELL
31881 # Generated by $as_me.
31882 # Run this file to recreate the current configuration.
31883 # Compiler output produced by configure, useful for debugging
31884 # configure, is in config.log if it exists.
31885
31886 debug=false
31887 ac_cs_recheck=false
31888 ac_cs_silent=false
31889
31890 SHELL=\${CONFIG_SHELL-$SHELL}
31891 export SHELL
31892 _ASEOF
31953 fi
31954
31955 # The user is always right.
31956 if test "${PATH_SEPARATOR+set}" != set; then
31957 PATH_SEPARATOR=:
31958 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31959 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31960 PATH_SEPARATOR=';'
31961 }
31962 fi
31963
31964
31965 # IFS
31966 # We need space, tab and new line, in precisely that order. Quoting is
31967 # there to prevent editors from complaining about space-tab.
31968 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31969 # splitting by setting IFS to empty value.)
31970 IFS=" "" $as_nl"
31971
31972 # Find who we are. Look in the path if we contain no directory separator.
31973 case $0 in #((
31974 *[\\/]* ) as_myself=$0 ;;
31975 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31976 for as_dir in $PATH
31977 do
31978 IFS=$as_save_IFS
31979 test -z "$as_dir" && as_dir=.
31980 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31981 done
31982 IFS=$as_save_IFS
31983
31984 ;;
31985 esac
31986 # We did not find ourselves, most probably we were run as `sh COMMAND'
31987 # in which case we are not to be found in the path.
31988 if test "x$as_myself" = x; then
31989 as_myself=$0
31990 fi
31991 if test ! -f "$as_myself"; then
31992 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32260 # Sed expression to map a string onto a valid CPP name.
32261 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32262
32263 # Sed expression to map a string onto a valid variable name.
32264 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32265
32266
32267 exec 6>&1
32268 ## ----------------------------------- ##
32269 ## Main body of $CONFIG_STATUS script. ##
32270 ## ----------------------------------- ##
32271 _ASEOF
32272 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
32273
32274 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32275 # Save the log message, to keep $0 and so on meaningful, and to
32276 # report actual input values of CONFIG_FILES etc. instead of their
32277 # values after options handling.
32278 ac_log="
32279 This file was extended by OpenJDK $as_me jdk8, which was
32280 generated by GNU Autoconf 2.67. Invocation command line was
32281
32282 CONFIG_FILES = $CONFIG_FILES
32283 CONFIG_HEADERS = $CONFIG_HEADERS
32284 CONFIG_LINKS = $CONFIG_LINKS
32285 CONFIG_COMMANDS = $CONFIG_COMMANDS
32286 $ $0 $@
32287
32288 on `(hostname || uname -n) 2>/dev/null | sed 1q`
32289 "
32290
32291 _ACEOF
32292
32293 case $ac_config_files in *"
32294 "*) set x $ac_config_files; shift; ac_config_files=$*;;
32295 esac
32296
32297 case $ac_config_headers in *"
32298 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
32299 esac
32300
32323 --recheck update $as_me by reconfiguring in the same conditions
32324 --file=FILE[:TEMPLATE]
32325 instantiate the configuration file FILE
32326 --header=FILE[:TEMPLATE]
32327 instantiate the configuration header FILE
32328
32329 Configuration files:
32330 $config_files
32331
32332 Configuration headers:
32333 $config_headers
32334
32335 Report bugs to <build-dev@openjdk.java.net>.
32336 OpenJDK home page: <http://openjdk.java.net>."
32337
32338 _ACEOF
32339 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32340 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
32341 ac_cs_version="\\
32342 OpenJDK config.status jdk8
32343 configured by $0, generated by GNU Autoconf 2.67,
32344 with options \\"\$ac_cs_config\\"
32345
32346 Copyright (C) 2010 Free Software Foundation, Inc.
32347 This config.status script is free software; the Free Software Foundation
32348 gives unlimited permission to copy, distribute and modify it."
32349
32350 ac_pwd='$ac_pwd'
32351 srcdir='$srcdir'
32352 AWK='$AWK'
32353 test -n "\$AWK" || AWK=awk
32354 _ACEOF
32355
32356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32357 # The default lists apply if the user does not specify any file.
32358 ac_need_defaults=:
32359 while test $# != 0
32360 do
32361 case $1 in
32362 --*=?*)
32363 ac_option=`expr "X$1" : 'X\([^=]*\)='`
32452 } >&5
32453
32454 _ACEOF
32455 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32456 _ACEOF
32457
32458 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32459
32460 # Handling of arguments.
32461 for ac_config_target in $ac_config_targets
32462 do
32463 case $ac_config_target in
32464 "$OUTPUT_ROOT/config.h") CONFIG_HEADERS="$CONFIG_HEADERS $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in" ;;
32465 "$OUTPUT_ROOT/spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" ;;
32466 "$OUTPUT_ROOT/hotspot-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" ;;
32467 "$OUTPUT_ROOT/bootcycle-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" ;;
32468 "$OUTPUT_ROOT/compare.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" ;;
32469 "$OUTPUT_ROOT/spec.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in" ;;
32470 "$OUTPUT_ROOT/Makefile") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" ;;
32471
32472 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
32473 esac
32474 done
32475
32476
32477 # If the user did not use the arguments to specify the items to instantiate,
32478 # then the envvar interface is used. Set only those that are not.
32479 # We use the long form for the default assignment because of an extremely
32480 # bizarre bug on SunOS 4.1.3.
32481 if $ac_need_defaults; then
32482 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32483 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32484 fi
32485
32486 # Have a temporary directory for convenience. Make it in the build tree
32487 # simply because there is no reason against having it here, and in addition,
32488 # creating and moving files from /tmp can sometimes cause problems.
32489 # Hook for its removal unless debugging.
32490 # Note that there is a small window in which the directory will not be cleaned:
32491 # after its creation but before its name has been assigned to `$tmp'.
32492 $debug ||
32493 {
32494 tmp=
32495 trap 'exit_status=$?
32496 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
32497 ' 0
32498 trap 'as_fn_exit 1' 1 2 13 15
32499 }
32500 # Create a (secure) tmp directory for tmp files.
32501
32502 {
32503 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32504 test -n "$tmp" && test -d "$tmp"
32505 } ||
32506 {
32507 tmp=./conf$$-$RANDOM
32508 (umask 077 && mkdir "$tmp")
32509 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
32510
32511 # Set up the scripts for CONFIG_FILES section.
32512 # No need to generate them if there are no CONFIG_FILES.
32513 # This happens for instance with `./config.status config.h'.
32514 if test -n "$CONFIG_FILES"; then
32515
32516
32517 ac_cr=`echo X | tr X '\015'`
32518 # On cygwin, bash can eat \r inside `` if the user requested igncr.
32519 # But we know of no other shell where ac_cr would be empty at this
32520 # point, so we can use a bashism as a fallback.
32521 if test "x$ac_cr" = x; then
32522 eval ac_cr=\$\'\\r\'
32523 fi
32524 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32525 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32526 ac_cs_awk_cr='\\r'
32527 else
32528 ac_cs_awk_cr=$ac_cr
32529 fi
32530
32531 echo 'BEGIN {' >"$tmp/subs1.awk" &&
32532 _ACEOF
32533
32534
32535 {
32536 echo "cat >conf$$subs.awk <<_ACEOF" &&
32537 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32538 echo "_ACEOF"
32539 } >conf$$subs.sh ||
32540 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32541 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
32542 ac_delim='%!_!# '
32543 for ac_last_try in false false false false false :; do
32544 . ./conf$$subs.sh ||
32545 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32546
32547 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32548 if test $ac_delim_n = $ac_delim_num; then
32549 break
32550 elif $ac_last_try; then
32551 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32552 else
32553 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32554 fi
32555 done
32556 rm -f conf$$subs.sh
32557
32558 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32559 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
32560 _ACEOF
32561 sed -n '
32562 h
32563 s/^/S["/; s/!.*/"]=/
32564 p
32565 g
32566 s/^[^!]*!//
32567 :repl
32568 t repl
32569 s/'"$ac_delim"'$//
32570 t delim
32571 :nl
32572 h
32573 s/\(.\{148\}\)..*/\1/
32574 t more1
32575 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32576 p
32577 n
32578 b repl
32579 :more1
32587 s/\(.\{148\}\)..*/\1/
32588 t more2
32589 s/["\\]/\\&/g; s/^/"/; s/$/"/
32590 p
32591 b
32592 :more2
32593 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32594 p
32595 g
32596 s/.\{148\}//
32597 t delim
32598 ' <conf$$subs.awk | sed '
32599 /^[^""]/{
32600 N
32601 s/\n//
32602 }
32603 ' >>$CONFIG_STATUS || ac_write_fail=1
32604 rm -f conf$$subs.awk
32605 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32606 _ACAWK
32607 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
32608 for (key in S) S_is_set[key] = 1
32609 FS = ""
32610
32611 }
32612 {
32613 line = $ 0
32614 nfields = split(line, field, "@")
32615 substed = 0
32616 len = length(field[1])
32617 for (i = 2; i < nfields; i++) {
32618 key = field[i]
32619 keylen = length(key)
32620 if (S_is_set[key]) {
32621 value = S[key]
32622 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32623 len += length(value) + length(field[++i])
32624 substed = 1
32625 } else
32626 len += 1 + keylen
32627 }
32628
32629 print line
32630 }
32631
32632 _ACAWK
32633 _ACEOF
32634 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32635 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32636 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32637 else
32638 cat
32639 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
32640 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
32641 _ACEOF
32642
32643 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
32644 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
32645 # trailing colons and then remove the whole line if VPATH becomes empty
32646 # (actually we leave an empty line to preserve line numbers).
32647 if test "x$srcdir" = x.; then
32648 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
32649 h
32650 s///
32651 s/^/:/
32652 s/[ ]*$/:/
32653 s/:\$(srcdir):/:/g
32654 s/:\${srcdir}:/:/g
32655 s/:@srcdir@:/:/g
32656 s/^:*//
32657 s/:*$//
32658 x
32659 s/\(=[ ]*\).*/\1/
32660 G
32661 s/\n//
32662 s/^[^=]*=[ ]*$//
32663 }'
32664 fi
32665
32666 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32667 fi # test -n "$CONFIG_FILES"
32668
32669 # Set up the scripts for CONFIG_HEADERS section.
32670 # No need to generate them if there are no CONFIG_HEADERS.
32671 # This happens for instance with `./config.status Makefile'.
32672 if test -n "$CONFIG_HEADERS"; then
32673 cat >"$tmp/defines.awk" <<\_ACAWK ||
32674 BEGIN {
32675 _ACEOF
32676
32677 # Transform confdefs.h into an awk script `defines.awk', embedded as
32678 # here-document in config.status, that substitutes the proper values into
32679 # config.h.in to produce config.h.
32680
32681 # Create a delimiter string that does not exist in confdefs.h, to ease
32682 # handling of long lines.
32683 ac_delim='%!_!# '
32684 for ac_last_try in false false :; do
32685 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
32686 if test -z "$ac_t"; then
32687 break
32688 elif $ac_last_try; then
32689 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
32690 else
32691 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32692 fi
32693 done
32694
32695 # For the awk script, D is an array of macro values keyed by name,
32696 # likewise P contains macro parameters if any. Preserve backslash
32697 # newline sequences.
32698
32699 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32700 sed -n '
32701 s/.\{148\}/&'"$ac_delim"'/g
32702 t rset
32703 :rset
32704 s/^[ ]*#[ ]*define[ ][ ]*/ /
32705 t def
32706 d
32767 }
32768 }
32769 }
32770 { print }
32771 _ACAWK
32772 _ACEOF
32773 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32774 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
32775 fi # test -n "$CONFIG_HEADERS"
32776
32777
32778 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
32779 shift
32780 for ac_tag
32781 do
32782 case $ac_tag in
32783 :[FHLC]) ac_mode=$ac_tag; continue;;
32784 esac
32785 case $ac_mode$ac_tag in
32786 :[FHL]*:*);;
32787 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
32788 :[FH]-) ac_tag=-:-;;
32789 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32790 esac
32791 ac_save_IFS=$IFS
32792 IFS=:
32793 set x $ac_tag
32794 IFS=$ac_save_IFS
32795 shift
32796 ac_file=$1
32797 shift
32798
32799 case $ac_mode in
32800 :L) ac_source=$1;;
32801 :[FH])
32802 ac_file_inputs=
32803 for ac_f
32804 do
32805 case $ac_f in
32806 -) ac_f="$tmp/stdin";;
32807 *) # Look for the file first in the build tree, then in the source tree
32808 # (if the path is not absolute). The absolute path cannot be DOS-style,
32809 # because $ac_f cannot contain `:'.
32810 test -f "$ac_f" ||
32811 case $ac_f in
32812 [\\/$]*) false;;
32813 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32814 esac ||
32815 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
32816 esac
32817 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32818 as_fn_append ac_file_inputs " '$ac_f'"
32819 done
32820
32821 # Let's still pretend it is `configure' which instantiates (i.e., don't
32822 # use $as_me), people would be surprised to read:
32823 # /* config.h. Generated by config.status. */
32824 configure_input='Generated from '`
32825 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32826 `' by configure.'
32827 if test x"$ac_file" != x-; then
32828 configure_input="$ac_file. $configure_input"
32829 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32830 $as_echo "$as_me: creating $ac_file" >&6;}
32831 fi
32832 # Neutralize special characters interpreted by sed in replacement strings.
32833 case $configure_input in #(
32834 *\&* | *\|* | *\\* )
32835 ac_sed_conf_input=`$as_echo "$configure_input" |
32836 sed 's/[\\\\&|]/\\\\&/g'`;; #(
32837 *) ac_sed_conf_input=$configure_input;;
32838 esac
32839
32840 case $ac_tag in
32841 *:-:* | *:-) cat >"$tmp/stdin" \
32842 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
32843 esac
32844 ;;
32845 esac
32846
32847 ac_dir=`$as_dirname -- "$ac_file" ||
32848 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32849 X"$ac_file" : 'X\(//\)[^/]' \| \
32850 X"$ac_file" : 'X\(//\)$' \| \
32851 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32852 $as_echo X"$ac_file" |
32853 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32854 s//\1/
32855 q
32856 }
32857 /^X\(\/\/\)[^/].*/{
32858 s//\1/
32859 q
32860 }
32861 /^X\(\/\/\)$/{
32947 # FIXME: do we really want to maintain this feature?
32948 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32949 ac_sed_extra="$ac_vpsub
32950 $extrasub
32951 _ACEOF
32952 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32953 :t
32954 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32955 s|@configure_input@|$ac_sed_conf_input|;t t
32956 s&@top_builddir@&$ac_top_builddir_sub&;t t
32957 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32958 s&@srcdir@&$ac_srcdir&;t t
32959 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32960 s&@top_srcdir@&$ac_top_srcdir&;t t
32961 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32962 s&@builddir@&$ac_builddir&;t t
32963 s&@abs_builddir@&$ac_abs_builddir&;t t
32964 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32965 $ac_datarootdir_hack
32966 "
32967 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
32968 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32969
32970 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32971 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
32972 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
32973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32974 which seems to be undefined. Please make sure it is defined" >&5
32975 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32976 which seems to be undefined. Please make sure it is defined" >&2;}
32977
32978 rm -f "$tmp/stdin"
32979 case $ac_file in
32980 -) cat "$tmp/out" && rm -f "$tmp/out";;
32981 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
32982 esac \
32983 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32984 ;;
32985 :H)
32986 #
32987 # CONFIG_HEADER
32988 #
32989 if test x"$ac_file" != x-; then
32990 {
32991 $as_echo "/* $configure_input */" \
32992 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
32993 } >"$tmp/config.h" \
32994 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32995 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
32996 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32997 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32998 else
32999 rm -f "$ac_file"
33000 mv "$tmp/config.h" "$ac_file" \
33001 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33002 fi
33003 else
33004 $as_echo "/* $configure_input */" \
33005 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
33006 || as_fn_error $? "could not create -" "$LINENO" 5
33007 fi
33008 ;;
33009
33010
33011 esac
33012
33013 done # for ac_tag
33014
33015
33016 as_fn_exit 0
33017 _ACEOF
33018 ac_clean_files=$ac_clean_files_save
33019
33020 test $ac_write_fail = 0 ||
33021 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33022
33023
33024 # configure is writing to config.log, and then calls config.status.
33025 # 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.68 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=:
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 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202 break 2
203 fi
204 fi
205 done;;
206 esac
207 as_found=false
208 done
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
212 fi; }
213 IFS=$as_save_IFS
214
215
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
221 BASH_ENV=/dev/null
222 ENV=/dev/null
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 export CONFIG_SHELL
225 case $- in # ((((
226 *v*x* | *x*v* ) as_opts=-vx ;;
227 *v* ) as_opts=-v ;;
228 *x* ) as_opts=-x ;;
229 * ) as_opts= ;;
230 esac
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 fi
233
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240 else
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and
242 $0: build-dev@openjdk.java.net about your system, including
243 $0: any error possibly output before this message. Then
244 $0: install a modern shell, or manually run the script
245 $0: under such a shell if you do have one."
246 fi
247 exit 1
248 fi
249 fi
250 fi
251 SHELL=${CONFIG_SHELL-/bin/sh}
1424
1425 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1426 Try \`$0 --help' for more information"
1427 ;;
1428
1429 *=*)
1430 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1431 # Reject names that are not valid shell variable names.
1432 case $ac_envvar in #(
1433 '' | [0-9]* | *[!_$as_cr_alnum]* )
1434 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1435 esac
1436 eval $ac_envvar=\$ac_optarg
1437 export $ac_envvar ;;
1438
1439 *)
1440 # FIXME: should be removed in autoconf 3.0.
1441 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1442 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1443 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1444 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1445 ;;
1446
1447 esac
1448 done
1449
1450 if test -n "$ac_prev"; then
1451 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1452 as_fn_error $? "missing argument to $ac_option"
1453 fi
1454
1455 if test -n "$ac_unrecognized_opts"; then
1456 case $enable_option_checking in
1457 no) ;;
1458 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1459 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1460 esac
1461 fi
1462
1463 # Check all directory arguments for consistency.
1464 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1849
1850 cd "$ac_dir" || { ac_status=$?; continue; }
1851 # Check for guested configure.
1852 if test -f "$ac_srcdir/configure.gnu"; then
1853 echo &&
1854 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1855 elif test -f "$ac_srcdir/configure"; then
1856 echo &&
1857 $SHELL "$ac_srcdir/configure" --help=recursive
1858 else
1859 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1860 fi || ac_status=$?
1861 cd "$ac_pwd" || { ac_status=$?; break; }
1862 done
1863 fi
1864
1865 test -n "$ac_init_help" && exit $ac_status
1866 if $ac_init_version; then
1867 cat <<\_ACEOF
1868 OpenJDK configure jdk8
1869 generated by GNU Autoconf 2.68
1870
1871 Copyright (C) 2010 Free Software Foundation, Inc.
1872 This configure script is free software; the Free Software Foundation
1873 gives unlimited permission to copy, distribute and modify it.
1874 _ACEOF
1875 exit
1876 fi
1877
1878 ## ------------------------ ##
1879 ## Autoconf initialization. ##
1880 ## ------------------------ ##
1881
1882 # ac_fn_c_try_compile LINENO
1883 # --------------------------
1884 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1885 ac_fn_c_try_compile ()
1886 {
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 rm -f conftest.$ac_objext
1889 if { { ac_try="$ac_compile"
1895 $as_echo "$ac_try_echo"; } >&5
1896 (eval "$ac_compile") 2>conftest.err
1897 ac_status=$?
1898 if test -s conftest.err; then
1899 grep -v '^ *+' conftest.err >conftest.er1
1900 cat conftest.er1 >&5
1901 mv -f conftest.er1 conftest.err
1902 fi
1903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1904 test $ac_status = 0; } && {
1905 test -z "$ac_c_werror_flag" ||
1906 test ! -s conftest.err
1907 } && test -s conftest.$ac_objext; then :
1908 ac_retval=0
1909 else
1910 $as_echo "$as_me: failed program was:" >&5
1911 sed 's/^/| /' conftest.$ac_ext >&5
1912
1913 ac_retval=1
1914 fi
1915 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1916 as_fn_set_status $ac_retval
1917
1918 } # ac_fn_c_try_compile
1919
1920 # ac_fn_cxx_try_compile LINENO
1921 # ----------------------------
1922 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1923 ac_fn_cxx_try_compile ()
1924 {
1925 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926 rm -f conftest.$ac_objext
1927 if { { ac_try="$ac_compile"
1928 case "(($ac_try" in
1929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1930 *) ac_try_echo=$ac_try;;
1931 esac
1932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1933 $as_echo "$ac_try_echo"; } >&5
1934 (eval "$ac_compile") 2>conftest.err
1935 ac_status=$?
1936 if test -s conftest.err; then
1937 grep -v '^ *+' conftest.err >conftest.er1
1938 cat conftest.er1 >&5
1939 mv -f conftest.er1 conftest.err
1940 fi
1941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1942 test $ac_status = 0; } && {
1943 test -z "$ac_cxx_werror_flag" ||
1944 test ! -s conftest.err
1945 } && test -s conftest.$ac_objext; then :
1946 ac_retval=0
1947 else
1948 $as_echo "$as_me: failed program was:" >&5
1949 sed 's/^/| /' conftest.$ac_ext >&5
1950
1951 ac_retval=1
1952 fi
1953 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1954 as_fn_set_status $ac_retval
1955
1956 } # ac_fn_cxx_try_compile
1957
1958 # ac_fn_objc_try_compile LINENO
1959 # -----------------------------
1960 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1961 ac_fn_objc_try_compile ()
1962 {
1963 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1964 rm -f conftest.$ac_objext
1965 if { { ac_try="$ac_compile"
1966 case "(($ac_try" in
1967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1968 *) ac_try_echo=$ac_try;;
1969 esac
1970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1971 $as_echo "$ac_try_echo"; } >&5
1972 (eval "$ac_compile") 2>conftest.err
1973 ac_status=$?
1974 if test -s conftest.err; then
1975 grep -v '^ *+' conftest.err >conftest.er1
1976 cat conftest.er1 >&5
1977 mv -f conftest.er1 conftest.err
1978 fi
1979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1980 test $ac_status = 0; } && {
1981 test -z "$ac_objc_werror_flag" ||
1982 test ! -s conftest.err
1983 } && test -s conftest.$ac_objext; then :
1984 ac_retval=0
1985 else
1986 $as_echo "$as_me: failed program was:" >&5
1987 sed 's/^/| /' conftest.$ac_ext >&5
1988
1989 ac_retval=1
1990 fi
1991 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1992 as_fn_set_status $ac_retval
1993
1994 } # ac_fn_objc_try_compile
1995
1996 # ac_fn_c_try_cpp LINENO
1997 # ----------------------
1998 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1999 ac_fn_c_try_cpp ()
2000 {
2001 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002 if { { ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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; } > conftest.i && {
2018 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2019 test ! -s conftest.err
2020 }; 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; ${as_lineno_stack:+:} unset as_lineno
2029 as_fn_set_status $ac_retval
2030
2031 } # ac_fn_c_try_cpp
2032
2033 # ac_fn_cxx_try_cpp LINENO
2034 # ------------------------
2035 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2036 ac_fn_cxx_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_cxx_preproc_warn_flag$ac_cxx_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; ${as_lineno_stack:+:} unset as_lineno
2066 as_fn_set_status $ac_retval
2067
2068 } # ac_fn_cxx_try_cpp
2069
2070 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2071 # ---------------------------------------------------------
2072 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2073 # the include files in INCLUDES and setting the cache variable VAR
2074 # accordingly.
2075 ac_fn_cxx_check_header_mongrel ()
2076 {
2077 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2078 if eval \${$3+:} false; then :
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2080 $as_echo_n "checking for $2... " >&6; }
2081 if eval \${$3+:} false; then :
2082 $as_echo_n "(cached) " >&6
2083 fi
2084 eval ac_res=\$$3
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2086 $as_echo "$ac_res" >&6; }
2087 else
2088 # Is the header compilable?
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2090 $as_echo_n "checking $2 usability... " >&6; }
2091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092 /* end confdefs.h. */
2093 $4
2094 #include <$2>
2095 _ACEOF
2096 if ac_fn_cxx_try_compile "$LINENO"; then :
2097 ac_header_compiler=yes
2098 else
2099 ac_header_compiler=no
2100 fi
2101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2128 ;;
2129 no:yes:* )
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2131 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2133 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2135 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2137 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2139 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2140 ( $as_echo "## ----------------------------------------- ##
2141 ## Report this to build-dev@openjdk.java.net ##
2142 ## ----------------------------------------- ##"
2143 ) | sed "s/^/$as_me: WARNING: /" >&2
2144 ;;
2145 esac
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2147 $as_echo_n "checking for $2... " >&6; }
2148 if eval \${$3+:} false; then :
2149 $as_echo_n "(cached) " >&6
2150 else
2151 eval "$3=\$ac_header_compiler"
2152 fi
2153 eval ac_res=\$$3
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2155 $as_echo "$ac_res" >&6; }
2156 fi
2157 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2158
2159 } # ac_fn_cxx_check_header_mongrel
2160
2161 # ac_fn_cxx_try_run LINENO
2162 # ------------------------
2163 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2164 # that executables *can* be run.
2165 ac_fn_cxx_try_run ()
2166 {
2167 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2168 if { { ac_try="$ac_link"
2169 case "(($ac_try" in
2170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2171 *) ac_try_echo=$ac_try;;
2172 esac
2173 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2174 $as_echo "$ac_try_echo"; } >&5
2175 (eval "$ac_link") 2>&5
2176 ac_status=$?
2177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2178 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2179 { { case "(($ac_try" in
2180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2181 *) ac_try_echo=$ac_try;;
2182 esac
2183 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2184 $as_echo "$ac_try_echo"; } >&5
2185 (eval "$ac_try") 2>&5
2186 ac_status=$?
2187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2188 test $ac_status = 0; }; }; then :
2189 ac_retval=0
2190 else
2191 $as_echo "$as_me: program exited with status $ac_status" >&5
2192 $as_echo "$as_me: failed program was:" >&5
2193 sed 's/^/| /' conftest.$ac_ext >&5
2194
2195 ac_retval=$ac_status
2196 fi
2197 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2198 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2199 as_fn_set_status $ac_retval
2200
2201 } # ac_fn_cxx_try_run
2202
2203 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2204 # ---------------------------------------------------------
2205 # Tests whether HEADER exists and can be compiled using the include files in
2206 # INCLUDES, setting the cache variable VAR accordingly.
2207 ac_fn_cxx_check_header_compile ()
2208 {
2209 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
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 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2216 /* end confdefs.h. */
2217 $4
2218 #include <$2>
2219 _ACEOF
2220 if ac_fn_cxx_try_compile "$LINENO"; then :
2221 eval "$3=yes"
2222 else
2223 eval "$3=no"
2224 fi
2225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2226 fi
2227 eval ac_res=\$$3
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2229 $as_echo "$ac_res" >&6; }
2230 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2231
2232 } # ac_fn_cxx_check_header_compile
2233
2234 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2235 # ----------------------------------------------
2236 # Tries to find the compile-time value of EXPR in a program that includes
2237 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2238 # computed
2239 ac_fn_cxx_compute_int ()
2240 {
2241 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2242 if test "$cross_compiling" = yes; then
2243 # Depending upon the size, compute the lo and hi bounds.
2244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2245 /* end confdefs.h. */
2246 $4
2247 int
2248 main ()
2249 {
2250 static int test_array [1 - 2 * !(($2) >= 0)];
2387 fprintf (f, "%lu", i);
2388 }
2389 /* Do not output a trailing newline, as this causes \r\n confusion
2390 on some platforms. */
2391 return ferror (f) || fclose (f) != 0;
2392
2393 ;
2394 return 0;
2395 }
2396 _ACEOF
2397 if ac_fn_cxx_try_run "$LINENO"; then :
2398 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2399 else
2400 ac_retval=1
2401 fi
2402 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2403 conftest.$ac_objext conftest.beam conftest.$ac_ext
2404 rm -f conftest.val
2405
2406 fi
2407 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2408 as_fn_set_status $ac_retval
2409
2410 } # ac_fn_cxx_compute_int
2411
2412 # ac_fn_cxx_try_link LINENO
2413 # -------------------------
2414 # Try to link conftest.$ac_ext, and return whether this succeeded.
2415 ac_fn_cxx_try_link ()
2416 {
2417 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2418 rm -f conftest.$ac_objext conftest$ac_exeext
2419 if { { ac_try="$ac_link"
2420 case "(($ac_try" in
2421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2422 *) ac_try_echo=$ac_try;;
2423 esac
2424 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2425 $as_echo "$ac_try_echo"; } >&5
2426 (eval "$ac_link") 2>conftest.err
2427 ac_status=$?
2433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2434 test $ac_status = 0; } && {
2435 test -z "$ac_cxx_werror_flag" ||
2436 test ! -s conftest.err
2437 } && test -s conftest$ac_exeext && {
2438 test "$cross_compiling" = yes ||
2439 $as_test_x conftest$ac_exeext
2440 }; then :
2441 ac_retval=0
2442 else
2443 $as_echo "$as_me: failed program was:" >&5
2444 sed 's/^/| /' conftest.$ac_ext >&5
2445
2446 ac_retval=1
2447 fi
2448 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2449 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2450 # interfere with the next link command; also delete a directory that is
2451 # left behind by Apple's compiler. We do this before executing the actions.
2452 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2453 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2454 as_fn_set_status $ac_retval
2455
2456 } # ac_fn_cxx_try_link
2457
2458 # ac_fn_cxx_check_func LINENO FUNC VAR
2459 # ------------------------------------
2460 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2461 ac_fn_cxx_check_func ()
2462 {
2463 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2465 $as_echo_n "checking for $2... " >&6; }
2466 if eval \${$3+:} false; then :
2467 $as_echo_n "(cached) " >&6
2468 else
2469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2470 /* end confdefs.h. */
2471 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2472 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2473 #define $2 innocuous_$2
2474
2475 /* System header to define __stub macros and hopefully few prototypes,
2476 which can conflict with char $2 (); below.
2477 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2478 <limits.h> exists even on freestanding compilers. */
2479
2480 #ifdef __STDC__
2481 # include <limits.h>
2482 #else
2483 # include <assert.h>
2484 #endif
2485
2486 #undef $2
2501
2502 int
2503 main ()
2504 {
2505 return $2 ();
2506 ;
2507 return 0;
2508 }
2509 _ACEOF
2510 if ac_fn_cxx_try_link "$LINENO"; then :
2511 eval "$3=yes"
2512 else
2513 eval "$3=no"
2514 fi
2515 rm -f core conftest.err conftest.$ac_objext \
2516 conftest$ac_exeext conftest.$ac_ext
2517 fi
2518 eval ac_res=\$$3
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2520 $as_echo "$ac_res" >&6; }
2521 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2522
2523 } # ac_fn_cxx_check_func
2524
2525 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2526 # -------------------------------------------------------
2527 # Tests whether HEADER exists and can be compiled using the include files in
2528 # INCLUDES, setting the cache variable VAR accordingly.
2529 ac_fn_c_check_header_compile ()
2530 {
2531 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2533 $as_echo_n "checking for $2... " >&6; }
2534 if eval \${$3+:} false; then :
2535 $as_echo_n "(cached) " >&6
2536 else
2537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2538 /* end confdefs.h. */
2539 $4
2540 #include <$2>
2541 _ACEOF
2542 if ac_fn_c_try_compile "$LINENO"; then :
2543 eval "$3=yes"
2544 else
2545 eval "$3=no"
2546 fi
2547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2548 fi
2549 eval ac_res=\$$3
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2551 $as_echo "$ac_res" >&6; }
2552 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2553
2554 } # ac_fn_c_check_header_compile
2555 cat >config.log <<_ACEOF
2556 This file contains any messages produced by compilers while
2557 running configure, to aid debugging if configure makes a mistake.
2558
2559 It was created by OpenJDK $as_me jdk8, which was
2560 generated by GNU Autoconf 2.68. Invocation command line was
2561
2562 $ $0 $@
2563
2564 _ACEOF
2565 exec 5>>config.log
2566 {
2567 cat <<_ASUNAME
2568 ## --------- ##
2569 ## Platform. ##
2570 ## --------- ##
2571
2572 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2573 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2574 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2575 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2576 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2577
2578 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2579 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2580
2798 *) ac_site_file1=./$CONFIG_SITE;;
2799 esac
2800 elif test "x$prefix" != xNONE; then
2801 ac_site_file1=$prefix/share/config.site
2802 ac_site_file2=$prefix/etc/config.site
2803 else
2804 ac_site_file1=$ac_default_prefix/share/config.site
2805 ac_site_file2=$ac_default_prefix/etc/config.site
2806 fi
2807 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2808 do
2809 test "x$ac_site_file" = xNONE && continue
2810 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2812 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2813 sed 's/^/| /' "$ac_site_file" >&5
2814 . "$ac_site_file" \
2815 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2816 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2817 as_fn_error $? "failed to load site script $ac_site_file
2818 See \`config.log' for more details" "$LINENO" 5; }
2819 fi
2820 done
2821
2822 if test -r "$cache_file"; then
2823 # Some versions of bash will fail to source /dev/null (special files
2824 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2825 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2827 $as_echo "$as_me: loading cache $cache_file" >&6;}
2828 case $cache_file in
2829 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2830 *) . "./$cache_file";;
2831 esac
2832 fi
2833 else
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2835 $as_echo "$as_me: creating cache $cache_file" >&6;}
2836 >$cache_file
2837 fi
2838
3688
3689
3690
3691
3692
3693 # Check if the VS env variables were setup prior to running configure.
3694 # If not, then find vcvarsall.bat and run it automatically, and integrate
3695 # the set env variables into the spec file.
3696
3697
3698
3699
3700
3701
3702 # This line needs to be here, verbatim, after all includes and the dummy hook
3703 # definitions. It is replaced with custom functionality when building
3704 # custom sources.
3705 #CUSTOM_AUTOCONF_INCLUDE
3706
3707 # Do not change or remove the following line, it is needed for consistency checks:
3708 DATE_WHEN_GENERATED=1358139409
3709
3710 ###############################################################################
3711 #
3712 # Initialization / Boot-strapping
3713 #
3714 # The bootstrapping process needs to solve the "chicken or the egg" problem,
3715 # thus it jumps back and forth, each time gaining something needed later on.
3716 #
3717 ###############################################################################
3718
3719 # Basic initialization that must happen first of all
3720
3721 # Save the original command line. This is passed to us by the wrapper configure script.
3722
3723 DATE_WHEN_CONFIGURED=`LANG=C date`
3724
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
3726 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
3728 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
3729
3730
3731
3732 # Start with tools that do not need have cross compilation support
3733 # and can be expected to be found in the default PATH. These tools are
3734 # used by configure. Nor are these tools expected to be found in the
3735 # devkit from the builddeps server either, since they are
3736 # needed to download the devkit.
3737
3738 # First are all the simple required tools.
3739
3740 for ac_prog in basename
3741 do
3742 # Extract the first word of "$ac_prog", so it can be a program name with args.
3743 set dummy $ac_prog; ac_word=$2
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3745 $as_echo_n "checking for $ac_word... " >&6; }
3746 if ${ac_cv_path_BASENAME+:} false; then :
3747 $as_echo_n "(cached) " >&6
3748 else
3749 case $BASENAME in
3750 [\\/]* | ?:[\\/]*)
3751 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
3752 ;;
3753 *)
3754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3755 for as_dir in $PATH
3756 do
3757 IFS=$as_save_IFS
3758 test -z "$as_dir" && as_dir=.
3759 for ac_exec_ext in '' $ac_executable_extensions; do
3760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3761 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
3762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3763 break 2
3764 fi
3765 done
3766 done
3785
3786 if test "x$BASENAME" = x; then
3787 if test "xbasename" = x; then
3788 PROG_NAME=basename
3789 else
3790 PROG_NAME=basename
3791 fi
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
3793 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
3794 as_fn_error $? "Cannot continue" "$LINENO" 5
3795 fi
3796
3797
3798
3799 for ac_prog in bash
3800 do
3801 # Extract the first word of "$ac_prog", so it can be a program name with args.
3802 set dummy $ac_prog; ac_word=$2
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3804 $as_echo_n "checking for $ac_word... " >&6; }
3805 if ${ac_cv_path_BASH+:} false; then :
3806 $as_echo_n "(cached) " >&6
3807 else
3808 case $BASH in
3809 [\\/]* | ?:[\\/]*)
3810 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
3811 ;;
3812 *)
3813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814 for as_dir in $PATH
3815 do
3816 IFS=$as_save_IFS
3817 test -z "$as_dir" && as_dir=.
3818 for ac_exec_ext in '' $ac_executable_extensions; do
3819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3820 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
3821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3822 break 2
3823 fi
3824 done
3825 done
3844
3845 if test "x$BASH" = x; then
3846 if test "xbash" = x; then
3847 PROG_NAME=bash
3848 else
3849 PROG_NAME=bash
3850 fi
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
3852 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
3853 as_fn_error $? "Cannot continue" "$LINENO" 5
3854 fi
3855
3856
3857
3858 for ac_prog in cat
3859 do
3860 # Extract the first word of "$ac_prog", so it can be a program name with args.
3861 set dummy $ac_prog; ac_word=$2
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3863 $as_echo_n "checking for $ac_word... " >&6; }
3864 if ${ac_cv_path_CAT+:} false; then :
3865 $as_echo_n "(cached) " >&6
3866 else
3867 case $CAT in
3868 [\\/]* | ?:[\\/]*)
3869 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
3870 ;;
3871 *)
3872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3873 for as_dir in $PATH
3874 do
3875 IFS=$as_save_IFS
3876 test -z "$as_dir" && as_dir=.
3877 for ac_exec_ext in '' $ac_executable_extensions; do
3878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3879 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
3880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3881 break 2
3882 fi
3883 done
3884 done
3903
3904 if test "x$CAT" = x; then
3905 if test "xcat" = x; then
3906 PROG_NAME=cat
3907 else
3908 PROG_NAME=cat
3909 fi
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
3911 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
3912 as_fn_error $? "Cannot continue" "$LINENO" 5
3913 fi
3914
3915
3916
3917 for ac_prog in chmod
3918 do
3919 # Extract the first word of "$ac_prog", so it can be a program name with args.
3920 set dummy $ac_prog; ac_word=$2
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3922 $as_echo_n "checking for $ac_word... " >&6; }
3923 if ${ac_cv_path_CHMOD+:} false; then :
3924 $as_echo_n "(cached) " >&6
3925 else
3926 case $CHMOD in
3927 [\\/]* | ?:[\\/]*)
3928 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
3929 ;;
3930 *)
3931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3932 for as_dir in $PATH
3933 do
3934 IFS=$as_save_IFS
3935 test -z "$as_dir" && as_dir=.
3936 for ac_exec_ext in '' $ac_executable_extensions; do
3937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3938 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
3939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3940 break 2
3941 fi
3942 done
3943 done
3962
3963 if test "x$CHMOD" = x; then
3964 if test "xchmod" = x; then
3965 PROG_NAME=chmod
3966 else
3967 PROG_NAME=chmod
3968 fi
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
3970 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
3971 as_fn_error $? "Cannot continue" "$LINENO" 5
3972 fi
3973
3974
3975
3976 for ac_prog in cmp
3977 do
3978 # Extract the first word of "$ac_prog", so it can be a program name with args.
3979 set dummy $ac_prog; ac_word=$2
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3981 $as_echo_n "checking for $ac_word... " >&6; }
3982 if ${ac_cv_path_CMP+:} false; then :
3983 $as_echo_n "(cached) " >&6
3984 else
3985 case $CMP in
3986 [\\/]* | ?:[\\/]*)
3987 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3988 ;;
3989 *)
3990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3991 for as_dir in $PATH
3992 do
3993 IFS=$as_save_IFS
3994 test -z "$as_dir" && as_dir=.
3995 for ac_exec_ext in '' $ac_executable_extensions; do
3996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3997 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3999 break 2
4000 fi
4001 done
4002 done
4021
4022 if test "x$CMP" = x; then
4023 if test "xcmp" = x; then
4024 PROG_NAME=cmp
4025 else
4026 PROG_NAME=cmp
4027 fi
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4029 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4030 as_fn_error $? "Cannot continue" "$LINENO" 5
4031 fi
4032
4033
4034
4035 for ac_prog in comm
4036 do
4037 # Extract the first word of "$ac_prog", so it can be a program name with args.
4038 set dummy $ac_prog; ac_word=$2
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4040 $as_echo_n "checking for $ac_word... " >&6; }
4041 if ${ac_cv_path_COMM+:} false; then :
4042 $as_echo_n "(cached) " >&6
4043 else
4044 case $COMM in
4045 [\\/]* | ?:[\\/]*)
4046 ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
4047 ;;
4048 *)
4049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4050 for as_dir in $PATH
4051 do
4052 IFS=$as_save_IFS
4053 test -z "$as_dir" && as_dir=.
4054 for ac_exec_ext in '' $ac_executable_extensions; do
4055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4056 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
4057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4058 break 2
4059 fi
4060 done
4061 done
4080
4081 if test "x$COMM" = x; then
4082 if test "xcomm" = x; then
4083 PROG_NAME=comm
4084 else
4085 PROG_NAME=comm
4086 fi
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4088 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4089 as_fn_error $? "Cannot continue" "$LINENO" 5
4090 fi
4091
4092
4093
4094 for ac_prog in cp
4095 do
4096 # Extract the first word of "$ac_prog", so it can be a program name with args.
4097 set dummy $ac_prog; ac_word=$2
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4099 $as_echo_n "checking for $ac_word... " >&6; }
4100 if ${ac_cv_path_CP+:} false; then :
4101 $as_echo_n "(cached) " >&6
4102 else
4103 case $CP in
4104 [\\/]* | ?:[\\/]*)
4105 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4106 ;;
4107 *)
4108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4109 for as_dir in $PATH
4110 do
4111 IFS=$as_save_IFS
4112 test -z "$as_dir" && as_dir=.
4113 for ac_exec_ext in '' $ac_executable_extensions; do
4114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4115 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4117 break 2
4118 fi
4119 done
4120 done
4139
4140 if test "x$CP" = x; then
4141 if test "xcp" = x; then
4142 PROG_NAME=cp
4143 else
4144 PROG_NAME=cp
4145 fi
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4147 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4148 as_fn_error $? "Cannot continue" "$LINENO" 5
4149 fi
4150
4151
4152
4153 for ac_prog in cpio
4154 do
4155 # Extract the first word of "$ac_prog", so it can be a program name with args.
4156 set dummy $ac_prog; ac_word=$2
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4158 $as_echo_n "checking for $ac_word... " >&6; }
4159 if ${ac_cv_path_CPIO+:} false; then :
4160 $as_echo_n "(cached) " >&6
4161 else
4162 case $CPIO in
4163 [\\/]* | ?:[\\/]*)
4164 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
4165 ;;
4166 *)
4167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4168 for as_dir in $PATH
4169 do
4170 IFS=$as_save_IFS
4171 test -z "$as_dir" && as_dir=.
4172 for ac_exec_ext in '' $ac_executable_extensions; do
4173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4174 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
4175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4176 break 2
4177 fi
4178 done
4179 done
4198
4199 if test "x$CPIO" = x; then
4200 if test "xcpio" = x; then
4201 PROG_NAME=cpio
4202 else
4203 PROG_NAME=cpio
4204 fi
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4206 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4207 as_fn_error $? "Cannot continue" "$LINENO" 5
4208 fi
4209
4210
4211
4212 for ac_prog in cut
4213 do
4214 # Extract the first word of "$ac_prog", so it can be a program name with args.
4215 set dummy $ac_prog; ac_word=$2
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4217 $as_echo_n "checking for $ac_word... " >&6; }
4218 if ${ac_cv_path_CUT+:} false; then :
4219 $as_echo_n "(cached) " >&6
4220 else
4221 case $CUT in
4222 [\\/]* | ?:[\\/]*)
4223 ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
4224 ;;
4225 *)
4226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4227 for as_dir in $PATH
4228 do
4229 IFS=$as_save_IFS
4230 test -z "$as_dir" && as_dir=.
4231 for ac_exec_ext in '' $ac_executable_extensions; do
4232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4233 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
4234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4235 break 2
4236 fi
4237 done
4238 done
4257
4258 if test "x$CUT" = x; then
4259 if test "xcut" = x; then
4260 PROG_NAME=cut
4261 else
4262 PROG_NAME=cut
4263 fi
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4265 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4266 as_fn_error $? "Cannot continue" "$LINENO" 5
4267 fi
4268
4269
4270
4271 for ac_prog in date
4272 do
4273 # Extract the first word of "$ac_prog", so it can be a program name with args.
4274 set dummy $ac_prog; ac_word=$2
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4276 $as_echo_n "checking for $ac_word... " >&6; }
4277 if ${ac_cv_path_DATE+:} false; then :
4278 $as_echo_n "(cached) " >&6
4279 else
4280 case $DATE in
4281 [\\/]* | ?:[\\/]*)
4282 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4283 ;;
4284 *)
4285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4286 for as_dir in $PATH
4287 do
4288 IFS=$as_save_IFS
4289 test -z "$as_dir" && as_dir=.
4290 for ac_exec_ext in '' $ac_executable_extensions; do
4291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4292 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4294 break 2
4295 fi
4296 done
4297 done
4316
4317 if test "x$DATE" = x; then
4318 if test "xdate" = x; then
4319 PROG_NAME=date
4320 else
4321 PROG_NAME=date
4322 fi
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4324 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4325 as_fn_error $? "Cannot continue" "$LINENO" 5
4326 fi
4327
4328
4329
4330 for ac_prog in gdiff diff
4331 do
4332 # Extract the first word of "$ac_prog", so it can be a program name with args.
4333 set dummy $ac_prog; ac_word=$2
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4335 $as_echo_n "checking for $ac_word... " >&6; }
4336 if ${ac_cv_path_DIFF+:} false; then :
4337 $as_echo_n "(cached) " >&6
4338 else
4339 case $DIFF in
4340 [\\/]* | ?:[\\/]*)
4341 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
4342 ;;
4343 *)
4344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4345 for as_dir in $PATH
4346 do
4347 IFS=$as_save_IFS
4348 test -z "$as_dir" && as_dir=.
4349 for ac_exec_ext in '' $ac_executable_extensions; do
4350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4351 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
4352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4353 break 2
4354 fi
4355 done
4356 done
4375
4376 if test "x$DIFF" = x; then
4377 if test "xgdiff diff" = x; then
4378 PROG_NAME=diff
4379 else
4380 PROG_NAME=gdiff diff
4381 fi
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4383 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4384 as_fn_error $? "Cannot continue" "$LINENO" 5
4385 fi
4386
4387
4388
4389 for ac_prog in dirname
4390 do
4391 # Extract the first word of "$ac_prog", so it can be a program name with args.
4392 set dummy $ac_prog; ac_word=$2
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4394 $as_echo_n "checking for $ac_word... " >&6; }
4395 if ${ac_cv_path_DIRNAME+:} false; then :
4396 $as_echo_n "(cached) " >&6
4397 else
4398 case $DIRNAME in
4399 [\\/]* | ?:[\\/]*)
4400 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
4401 ;;
4402 *)
4403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404 for as_dir in $PATH
4405 do
4406 IFS=$as_save_IFS
4407 test -z "$as_dir" && as_dir=.
4408 for ac_exec_ext in '' $ac_executable_extensions; do
4409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4410 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
4411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4412 break 2
4413 fi
4414 done
4415 done
4434
4435 if test "x$DIRNAME" = x; then
4436 if test "xdirname" = x; then
4437 PROG_NAME=dirname
4438 else
4439 PROG_NAME=dirname
4440 fi
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4442 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4443 as_fn_error $? "Cannot continue" "$LINENO" 5
4444 fi
4445
4446
4447
4448 for ac_prog in echo
4449 do
4450 # Extract the first word of "$ac_prog", so it can be a program name with args.
4451 set dummy $ac_prog; ac_word=$2
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4453 $as_echo_n "checking for $ac_word... " >&6; }
4454 if ${ac_cv_path_ECHO+:} false; then :
4455 $as_echo_n "(cached) " >&6
4456 else
4457 case $ECHO in
4458 [\\/]* | ?:[\\/]*)
4459 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4460 ;;
4461 *)
4462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4463 for as_dir in $PATH
4464 do
4465 IFS=$as_save_IFS
4466 test -z "$as_dir" && as_dir=.
4467 for ac_exec_ext in '' $ac_executable_extensions; do
4468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4469 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4471 break 2
4472 fi
4473 done
4474 done
4493
4494 if test "x$ECHO" = x; then
4495 if test "xecho" = x; then
4496 PROG_NAME=echo
4497 else
4498 PROG_NAME=echo
4499 fi
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4501 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4502 as_fn_error $? "Cannot continue" "$LINENO" 5
4503 fi
4504
4505
4506
4507 for ac_prog in expr
4508 do
4509 # Extract the first word of "$ac_prog", so it can be a program name with args.
4510 set dummy $ac_prog; ac_word=$2
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4512 $as_echo_n "checking for $ac_word... " >&6; }
4513 if ${ac_cv_path_EXPR+:} false; then :
4514 $as_echo_n "(cached) " >&6
4515 else
4516 case $EXPR in
4517 [\\/]* | ?:[\\/]*)
4518 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
4519 ;;
4520 *)
4521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522 for as_dir in $PATH
4523 do
4524 IFS=$as_save_IFS
4525 test -z "$as_dir" && as_dir=.
4526 for ac_exec_ext in '' $ac_executable_extensions; do
4527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4528 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
4529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4530 break 2
4531 fi
4532 done
4533 done
4552
4553 if test "x$EXPR" = x; then
4554 if test "xexpr" = x; then
4555 PROG_NAME=expr
4556 else
4557 PROG_NAME=expr
4558 fi
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4560 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4561 as_fn_error $? "Cannot continue" "$LINENO" 5
4562 fi
4563
4564
4565
4566 for ac_prog in file
4567 do
4568 # Extract the first word of "$ac_prog", so it can be a program name with args.
4569 set dummy $ac_prog; ac_word=$2
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4571 $as_echo_n "checking for $ac_word... " >&6; }
4572 if ${ac_cv_path_FILE+:} false; then :
4573 $as_echo_n "(cached) " >&6
4574 else
4575 case $FILE in
4576 [\\/]* | ?:[\\/]*)
4577 ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
4578 ;;
4579 *)
4580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581 for as_dir in $PATH
4582 do
4583 IFS=$as_save_IFS
4584 test -z "$as_dir" && as_dir=.
4585 for ac_exec_ext in '' $ac_executable_extensions; do
4586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4587 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
4588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4589 break 2
4590 fi
4591 done
4592 done
4611
4612 if test "x$FILE" = x; then
4613 if test "xfile" = x; then
4614 PROG_NAME=file
4615 else
4616 PROG_NAME=file
4617 fi
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4619 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4620 as_fn_error $? "Cannot continue" "$LINENO" 5
4621 fi
4622
4623
4624
4625 for ac_prog in find
4626 do
4627 # Extract the first word of "$ac_prog", so it can be a program name with args.
4628 set dummy $ac_prog; ac_word=$2
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4630 $as_echo_n "checking for $ac_word... " >&6; }
4631 if ${ac_cv_path_FIND+:} false; then :
4632 $as_echo_n "(cached) " >&6
4633 else
4634 case $FIND in
4635 [\\/]* | ?:[\\/]*)
4636 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4637 ;;
4638 *)
4639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640 for as_dir in $PATH
4641 do
4642 IFS=$as_save_IFS
4643 test -z "$as_dir" && as_dir=.
4644 for ac_exec_ext in '' $ac_executable_extensions; do
4645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4646 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4648 break 2
4649 fi
4650 done
4651 done
4670
4671 if test "x$FIND" = x; then
4672 if test "xfind" = x; then
4673 PROG_NAME=find
4674 else
4675 PROG_NAME=find
4676 fi
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4678 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4679 as_fn_error $? "Cannot continue" "$LINENO" 5
4680 fi
4681
4682
4683
4684 for ac_prog in head
4685 do
4686 # Extract the first word of "$ac_prog", so it can be a program name with args.
4687 set dummy $ac_prog; ac_word=$2
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4689 $as_echo_n "checking for $ac_word... " >&6; }
4690 if ${ac_cv_path_HEAD+:} false; then :
4691 $as_echo_n "(cached) " >&6
4692 else
4693 case $HEAD in
4694 [\\/]* | ?:[\\/]*)
4695 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
4696 ;;
4697 *)
4698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699 for as_dir in $PATH
4700 do
4701 IFS=$as_save_IFS
4702 test -z "$as_dir" && as_dir=.
4703 for ac_exec_ext in '' $ac_executable_extensions; do
4704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4705 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
4706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4707 break 2
4708 fi
4709 done
4710 done
4729
4730 if test "x$HEAD" = x; then
4731 if test "xhead" = x; then
4732 PROG_NAME=head
4733 else
4734 PROG_NAME=head
4735 fi
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4737 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4738 as_fn_error $? "Cannot continue" "$LINENO" 5
4739 fi
4740
4741
4742
4743 for ac_prog in ln
4744 do
4745 # Extract the first word of "$ac_prog", so it can be a program name with args.
4746 set dummy $ac_prog; ac_word=$2
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4748 $as_echo_n "checking for $ac_word... " >&6; }
4749 if ${ac_cv_path_LN+:} false; then :
4750 $as_echo_n "(cached) " >&6
4751 else
4752 case $LN in
4753 [\\/]* | ?:[\\/]*)
4754 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4755 ;;
4756 *)
4757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758 for as_dir in $PATH
4759 do
4760 IFS=$as_save_IFS
4761 test -z "$as_dir" && as_dir=.
4762 for ac_exec_ext in '' $ac_executable_extensions; do
4763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4764 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4766 break 2
4767 fi
4768 done
4769 done
4788
4789 if test "x$LN" = x; then
4790 if test "xln" = x; then
4791 PROG_NAME=ln
4792 else
4793 PROG_NAME=ln
4794 fi
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4796 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4797 as_fn_error $? "Cannot continue" "$LINENO" 5
4798 fi
4799
4800
4801
4802 for ac_prog in ls
4803 do
4804 # Extract the first word of "$ac_prog", so it can be a program name with args.
4805 set dummy $ac_prog; ac_word=$2
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4807 $as_echo_n "checking for $ac_word... " >&6; }
4808 if ${ac_cv_path_LS+:} false; then :
4809 $as_echo_n "(cached) " >&6
4810 else
4811 case $LS in
4812 [\\/]* | ?:[\\/]*)
4813 ac_cv_path_LS="$LS" # Let the user override the test with a path.
4814 ;;
4815 *)
4816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4817 for as_dir in $PATH
4818 do
4819 IFS=$as_save_IFS
4820 test -z "$as_dir" && as_dir=.
4821 for ac_exec_ext in '' $ac_executable_extensions; do
4822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4823 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
4824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4825 break 2
4826 fi
4827 done
4828 done
4847
4848 if test "x$LS" = x; then
4849 if test "xls" = x; then
4850 PROG_NAME=ls
4851 else
4852 PROG_NAME=ls
4853 fi
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4855 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4856 as_fn_error $? "Cannot continue" "$LINENO" 5
4857 fi
4858
4859
4860
4861 for ac_prog in mkdir
4862 do
4863 # Extract the first word of "$ac_prog", so it can be a program name with args.
4864 set dummy $ac_prog; ac_word=$2
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4866 $as_echo_n "checking for $ac_word... " >&6; }
4867 if ${ac_cv_path_MKDIR+:} false; then :
4868 $as_echo_n "(cached) " >&6
4869 else
4870 case $MKDIR in
4871 [\\/]* | ?:[\\/]*)
4872 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4873 ;;
4874 *)
4875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876 for as_dir in $PATH
4877 do
4878 IFS=$as_save_IFS
4879 test -z "$as_dir" && as_dir=.
4880 for ac_exec_ext in '' $ac_executable_extensions; do
4881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4882 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4884 break 2
4885 fi
4886 done
4887 done
4906
4907 if test "x$MKDIR" = x; then
4908 if test "xmkdir" = x; then
4909 PROG_NAME=mkdir
4910 else
4911 PROG_NAME=mkdir
4912 fi
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4914 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4915 as_fn_error $? "Cannot continue" "$LINENO" 5
4916 fi
4917
4918
4919
4920 for ac_prog in mktemp
4921 do
4922 # Extract the first word of "$ac_prog", so it can be a program name with args.
4923 set dummy $ac_prog; ac_word=$2
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4925 $as_echo_n "checking for $ac_word... " >&6; }
4926 if ${ac_cv_path_MKTEMP+:} false; then :
4927 $as_echo_n "(cached) " >&6
4928 else
4929 case $MKTEMP in
4930 [\\/]* | ?:[\\/]*)
4931 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
4932 ;;
4933 *)
4934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935 for as_dir in $PATH
4936 do
4937 IFS=$as_save_IFS
4938 test -z "$as_dir" && as_dir=.
4939 for ac_exec_ext in '' $ac_executable_extensions; do
4940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4941 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
4942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4943 break 2
4944 fi
4945 done
4946 done
4965
4966 if test "x$MKTEMP" = x; then
4967 if test "xmktemp" = x; then
4968 PROG_NAME=mktemp
4969 else
4970 PROG_NAME=mktemp
4971 fi
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
4973 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
4974 as_fn_error $? "Cannot continue" "$LINENO" 5
4975 fi
4976
4977
4978
4979 for ac_prog in mv
4980 do
4981 # Extract the first word of "$ac_prog", so it can be a program name with args.
4982 set dummy $ac_prog; ac_word=$2
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4984 $as_echo_n "checking for $ac_word... " >&6; }
4985 if ${ac_cv_path_MV+:} false; then :
4986 $as_echo_n "(cached) " >&6
4987 else
4988 case $MV in
4989 [\\/]* | ?:[\\/]*)
4990 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4991 ;;
4992 *)
4993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994 for as_dir in $PATH
4995 do
4996 IFS=$as_save_IFS
4997 test -z "$as_dir" && as_dir=.
4998 for ac_exec_ext in '' $ac_executable_extensions; do
4999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5000 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5002 break 2
5003 fi
5004 done
5005 done
5024
5025 if test "x$MV" = x; then
5026 if test "xmv" = x; then
5027 PROG_NAME=mv
5028 else
5029 PROG_NAME=mv
5030 fi
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5032 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5033 as_fn_error $? "Cannot continue" "$LINENO" 5
5034 fi
5035
5036
5037
5038 for ac_prog in printf
5039 do
5040 # Extract the first word of "$ac_prog", so it can be a program name with args.
5041 set dummy $ac_prog; ac_word=$2
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5043 $as_echo_n "checking for $ac_word... " >&6; }
5044 if ${ac_cv_path_PRINTF+:} false; then :
5045 $as_echo_n "(cached) " >&6
5046 else
5047 case $PRINTF in
5048 [\\/]* | ?:[\\/]*)
5049 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
5050 ;;
5051 *)
5052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053 for as_dir in $PATH
5054 do
5055 IFS=$as_save_IFS
5056 test -z "$as_dir" && as_dir=.
5057 for ac_exec_ext in '' $ac_executable_extensions; do
5058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5059 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
5060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5061 break 2
5062 fi
5063 done
5064 done
5083
5084 if test "x$PRINTF" = x; then
5085 if test "xprintf" = x; then
5086 PROG_NAME=printf
5087 else
5088 PROG_NAME=printf
5089 fi
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5091 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5092 as_fn_error $? "Cannot continue" "$LINENO" 5
5093 fi
5094
5095
5096
5097 for ac_prog in pwd
5098 do
5099 # Extract the first word of "$ac_prog", so it can be a program name with args.
5100 set dummy $ac_prog; ac_word=$2
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5102 $as_echo_n "checking for $ac_word... " >&6; }
5103 if ${ac_cv_path_THEPWDCMD+:} false; then :
5104 $as_echo_n "(cached) " >&6
5105 else
5106 case $THEPWDCMD in
5107 [\\/]* | ?:[\\/]*)
5108 ac_cv_path_THEPWDCMD="$THEPWDCMD" # Let the user override the test with a path.
5109 ;;
5110 *)
5111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5112 for as_dir in $PATH
5113 do
5114 IFS=$as_save_IFS
5115 test -z "$as_dir" && as_dir=.
5116 for ac_exec_ext in '' $ac_executable_extensions; do
5117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5118 ac_cv_path_THEPWDCMD="$as_dir/$ac_word$ac_exec_ext"
5119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5120 break 2
5121 fi
5122 done
5123 done
5142
5143 if test "x$THEPWDCMD" = x; then
5144 if test "xpwd" = x; then
5145 PROG_NAME=thepwdcmd
5146 else
5147 PROG_NAME=pwd
5148 fi
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5150 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5151 as_fn_error $? "Cannot continue" "$LINENO" 5
5152 fi
5153
5154
5155
5156 for ac_prog in rm
5157 do
5158 # Extract the first word of "$ac_prog", so it can be a program name with args.
5159 set dummy $ac_prog; ac_word=$2
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5161 $as_echo_n "checking for $ac_word... " >&6; }
5162 if ${ac_cv_path_RM+:} false; then :
5163 $as_echo_n "(cached) " >&6
5164 else
5165 case $RM in
5166 [\\/]* | ?:[\\/]*)
5167 ac_cv_path_RM="$RM" # Let the user override the test with a path.
5168 ;;
5169 *)
5170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5171 for as_dir in $PATH
5172 do
5173 IFS=$as_save_IFS
5174 test -z "$as_dir" && as_dir=.
5175 for ac_exec_ext in '' $ac_executable_extensions; do
5176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5177 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5179 break 2
5180 fi
5181 done
5182 done
5201
5202 if test "x$RM" = x; then
5203 if test "xrm" = x; then
5204 PROG_NAME=rm
5205 else
5206 PROG_NAME=rm
5207 fi
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5209 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5210 as_fn_error $? "Cannot continue" "$LINENO" 5
5211 fi
5212
5213
5214
5215 for ac_prog in sh
5216 do
5217 # Extract the first word of "$ac_prog", so it can be a program name with args.
5218 set dummy $ac_prog; ac_word=$2
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5220 $as_echo_n "checking for $ac_word... " >&6; }
5221 if ${ac_cv_path_SH+:} false; then :
5222 $as_echo_n "(cached) " >&6
5223 else
5224 case $SH in
5225 [\\/]* | ?:[\\/]*)
5226 ac_cv_path_SH="$SH" # Let the user override the test with a path.
5227 ;;
5228 *)
5229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5230 for as_dir in $PATH
5231 do
5232 IFS=$as_save_IFS
5233 test -z "$as_dir" && as_dir=.
5234 for ac_exec_ext in '' $ac_executable_extensions; do
5235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5236 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
5237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5238 break 2
5239 fi
5240 done
5241 done
5260
5261 if test "x$SH" = x; then
5262 if test "xsh" = x; then
5263 PROG_NAME=sh
5264 else
5265 PROG_NAME=sh
5266 fi
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5268 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5269 as_fn_error $? "Cannot continue" "$LINENO" 5
5270 fi
5271
5272
5273
5274 for ac_prog in sort
5275 do
5276 # Extract the first word of "$ac_prog", so it can be a program name with args.
5277 set dummy $ac_prog; ac_word=$2
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5279 $as_echo_n "checking for $ac_word... " >&6; }
5280 if ${ac_cv_path_SORT+:} false; then :
5281 $as_echo_n "(cached) " >&6
5282 else
5283 case $SORT in
5284 [\\/]* | ?:[\\/]*)
5285 ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
5286 ;;
5287 *)
5288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5289 for as_dir in $PATH
5290 do
5291 IFS=$as_save_IFS
5292 test -z "$as_dir" && as_dir=.
5293 for ac_exec_ext in '' $ac_executable_extensions; do
5294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5295 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
5296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5297 break 2
5298 fi
5299 done
5300 done
5319
5320 if test "x$SORT" = x; then
5321 if test "xsort" = x; then
5322 PROG_NAME=sort
5323 else
5324 PROG_NAME=sort
5325 fi
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5327 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5328 as_fn_error $? "Cannot continue" "$LINENO" 5
5329 fi
5330
5331
5332
5333 for ac_prog in tail
5334 do
5335 # Extract the first word of "$ac_prog", so it can be a program name with args.
5336 set dummy $ac_prog; ac_word=$2
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5338 $as_echo_n "checking for $ac_word... " >&6; }
5339 if ${ac_cv_path_TAIL+:} false; then :
5340 $as_echo_n "(cached) " >&6
5341 else
5342 case $TAIL in
5343 [\\/]* | ?:[\\/]*)
5344 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
5345 ;;
5346 *)
5347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5348 for as_dir in $PATH
5349 do
5350 IFS=$as_save_IFS
5351 test -z "$as_dir" && as_dir=.
5352 for ac_exec_ext in '' $ac_executable_extensions; do
5353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5354 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
5355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5356 break 2
5357 fi
5358 done
5359 done
5378
5379 if test "x$TAIL" = x; then
5380 if test "xtail" = x; then
5381 PROG_NAME=tail
5382 else
5383 PROG_NAME=tail
5384 fi
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5386 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5387 as_fn_error $? "Cannot continue" "$LINENO" 5
5388 fi
5389
5390
5391
5392 for ac_prog in tar
5393 do
5394 # Extract the first word of "$ac_prog", so it can be a program name with args.
5395 set dummy $ac_prog; ac_word=$2
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5397 $as_echo_n "checking for $ac_word... " >&6; }
5398 if ${ac_cv_path_TAR+:} false; then :
5399 $as_echo_n "(cached) " >&6
5400 else
5401 case $TAR in
5402 [\\/]* | ?:[\\/]*)
5403 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5404 ;;
5405 *)
5406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5407 for as_dir in $PATH
5408 do
5409 IFS=$as_save_IFS
5410 test -z "$as_dir" && as_dir=.
5411 for ac_exec_ext in '' $ac_executable_extensions; do
5412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5413 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5415 break 2
5416 fi
5417 done
5418 done
5437
5438 if test "x$TAR" = x; then
5439 if test "xtar" = x; then
5440 PROG_NAME=tar
5441 else
5442 PROG_NAME=tar
5443 fi
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5445 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5446 as_fn_error $? "Cannot continue" "$LINENO" 5
5447 fi
5448
5449
5450
5451 for ac_prog in tee
5452 do
5453 # Extract the first word of "$ac_prog", so it can be a program name with args.
5454 set dummy $ac_prog; ac_word=$2
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5456 $as_echo_n "checking for $ac_word... " >&6; }
5457 if ${ac_cv_path_TEE+:} false; then :
5458 $as_echo_n "(cached) " >&6
5459 else
5460 case $TEE in
5461 [\\/]* | ?:[\\/]*)
5462 ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
5463 ;;
5464 *)
5465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5466 for as_dir in $PATH
5467 do
5468 IFS=$as_save_IFS
5469 test -z "$as_dir" && as_dir=.
5470 for ac_exec_ext in '' $ac_executable_extensions; do
5471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5472 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
5473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5474 break 2
5475 fi
5476 done
5477 done
5496
5497 if test "x$TEE" = x; then
5498 if test "xtee" = x; then
5499 PROG_NAME=tee
5500 else
5501 PROG_NAME=tee
5502 fi
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5504 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5505 as_fn_error $? "Cannot continue" "$LINENO" 5
5506 fi
5507
5508
5509
5510 for ac_prog in touch
5511 do
5512 # Extract the first word of "$ac_prog", so it can be a program name with args.
5513 set dummy $ac_prog; ac_word=$2
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5515 $as_echo_n "checking for $ac_word... " >&6; }
5516 if ${ac_cv_path_TOUCH+:} false; then :
5517 $as_echo_n "(cached) " >&6
5518 else
5519 case $TOUCH in
5520 [\\/]* | ?:[\\/]*)
5521 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
5522 ;;
5523 *)
5524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5525 for as_dir in $PATH
5526 do
5527 IFS=$as_save_IFS
5528 test -z "$as_dir" && as_dir=.
5529 for ac_exec_ext in '' $ac_executable_extensions; do
5530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5531 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
5532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5533 break 2
5534 fi
5535 done
5536 done
5555
5556 if test "x$TOUCH" = x; then
5557 if test "xtouch" = x; then
5558 PROG_NAME=touch
5559 else
5560 PROG_NAME=touch
5561 fi
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5563 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5564 as_fn_error $? "Cannot continue" "$LINENO" 5
5565 fi
5566
5567
5568
5569 for ac_prog in tr
5570 do
5571 # Extract the first word of "$ac_prog", so it can be a program name with args.
5572 set dummy $ac_prog; ac_word=$2
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5574 $as_echo_n "checking for $ac_word... " >&6; }
5575 if ${ac_cv_path_TR+:} false; then :
5576 $as_echo_n "(cached) " >&6
5577 else
5578 case $TR in
5579 [\\/]* | ?:[\\/]*)
5580 ac_cv_path_TR="$TR" # Let the user override the test with a path.
5581 ;;
5582 *)
5583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5584 for as_dir in $PATH
5585 do
5586 IFS=$as_save_IFS
5587 test -z "$as_dir" && as_dir=.
5588 for ac_exec_ext in '' $ac_executable_extensions; do
5589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5590 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
5591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5592 break 2
5593 fi
5594 done
5595 done
5614
5615 if test "x$TR" = x; then
5616 if test "xtr" = x; then
5617 PROG_NAME=tr
5618 else
5619 PROG_NAME=tr
5620 fi
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5622 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5623 as_fn_error $? "Cannot continue" "$LINENO" 5
5624 fi
5625
5626
5627
5628 for ac_prog in uname
5629 do
5630 # Extract the first word of "$ac_prog", so it can be a program name with args.
5631 set dummy $ac_prog; ac_word=$2
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5633 $as_echo_n "checking for $ac_word... " >&6; }
5634 if ${ac_cv_path_UNAME+:} false; then :
5635 $as_echo_n "(cached) " >&6
5636 else
5637 case $UNAME in
5638 [\\/]* | ?:[\\/]*)
5639 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
5640 ;;
5641 *)
5642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5643 for as_dir in $PATH
5644 do
5645 IFS=$as_save_IFS
5646 test -z "$as_dir" && as_dir=.
5647 for ac_exec_ext in '' $ac_executable_extensions; do
5648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5649 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
5650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5651 break 2
5652 fi
5653 done
5654 done
5673
5674 if test "x$UNAME" = x; then
5675 if test "xuname" = x; then
5676 PROG_NAME=uname
5677 else
5678 PROG_NAME=uname
5679 fi
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5681 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5682 as_fn_error $? "Cannot continue" "$LINENO" 5
5683 fi
5684
5685
5686
5687 for ac_prog in uniq
5688 do
5689 # Extract the first word of "$ac_prog", so it can be a program name with args.
5690 set dummy $ac_prog; ac_word=$2
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5692 $as_echo_n "checking for $ac_word... " >&6; }
5693 if ${ac_cv_path_UNIQ+:} false; then :
5694 $as_echo_n "(cached) " >&6
5695 else
5696 case $UNIQ in
5697 [\\/]* | ?:[\\/]*)
5698 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
5699 ;;
5700 *)
5701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5702 for as_dir in $PATH
5703 do
5704 IFS=$as_save_IFS
5705 test -z "$as_dir" && as_dir=.
5706 for ac_exec_ext in '' $ac_executable_extensions; do
5707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5708 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
5709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5710 break 2
5711 fi
5712 done
5713 done
5732
5733 if test "x$UNIQ" = x; then
5734 if test "xuniq" = x; then
5735 PROG_NAME=uniq
5736 else
5737 PROG_NAME=uniq
5738 fi
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5740 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5741 as_fn_error $? "Cannot continue" "$LINENO" 5
5742 fi
5743
5744
5745
5746 for ac_prog in wc
5747 do
5748 # Extract the first word of "$ac_prog", so it can be a program name with args.
5749 set dummy $ac_prog; ac_word=$2
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5751 $as_echo_n "checking for $ac_word... " >&6; }
5752 if ${ac_cv_path_WC+:} false; then :
5753 $as_echo_n "(cached) " >&6
5754 else
5755 case $WC in
5756 [\\/]* | ?:[\\/]*)
5757 ac_cv_path_WC="$WC" # Let the user override the test with a path.
5758 ;;
5759 *)
5760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5761 for as_dir in $PATH
5762 do
5763 IFS=$as_save_IFS
5764 test -z "$as_dir" && as_dir=.
5765 for ac_exec_ext in '' $ac_executable_extensions; do
5766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5767 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
5768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5769 break 2
5770 fi
5771 done
5772 done
5791
5792 if test "x$WC" = x; then
5793 if test "xwc" = x; then
5794 PROG_NAME=wc
5795 else
5796 PROG_NAME=wc
5797 fi
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5799 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5800 as_fn_error $? "Cannot continue" "$LINENO" 5
5801 fi
5802
5803
5804
5805 for ac_prog in which
5806 do
5807 # Extract the first word of "$ac_prog", so it can be a program name with args.
5808 set dummy $ac_prog; ac_word=$2
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5810 $as_echo_n "checking for $ac_word... " >&6; }
5811 if ${ac_cv_path_WHICH+:} false; then :
5812 $as_echo_n "(cached) " >&6
5813 else
5814 case $WHICH in
5815 [\\/]* | ?:[\\/]*)
5816 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
5817 ;;
5818 *)
5819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5820 for as_dir in $PATH
5821 do
5822 IFS=$as_save_IFS
5823 test -z "$as_dir" && as_dir=.
5824 for ac_exec_ext in '' $ac_executable_extensions; do
5825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5826 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
5827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5828 break 2
5829 fi
5830 done
5831 done
5850
5851 if test "x$WHICH" = x; then
5852 if test "xwhich" = x; then
5853 PROG_NAME=which
5854 else
5855 PROG_NAME=which
5856 fi
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5858 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5859 as_fn_error $? "Cannot continue" "$LINENO" 5
5860 fi
5861
5862
5863
5864 for ac_prog in xargs
5865 do
5866 # Extract the first word of "$ac_prog", so it can be a program name with args.
5867 set dummy $ac_prog; ac_word=$2
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5869 $as_echo_n "checking for $ac_word... " >&6; }
5870 if ${ac_cv_path_XARGS+:} false; then :
5871 $as_echo_n "(cached) " >&6
5872 else
5873 case $XARGS in
5874 [\\/]* | ?:[\\/]*)
5875 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
5876 ;;
5877 *)
5878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5879 for as_dir in $PATH
5880 do
5881 IFS=$as_save_IFS
5882 test -z "$as_dir" && as_dir=.
5883 for ac_exec_ext in '' $ac_executable_extensions; do
5884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5885 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
5886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5887 break 2
5888 fi
5889 done
5890 done
5910 if test "x$XARGS" = x; then
5911 if test "xxargs" = x; then
5912 PROG_NAME=xargs
5913 else
5914 PROG_NAME=xargs
5915 fi
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5917 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5918 as_fn_error $? "Cannot continue" "$LINENO" 5
5919 fi
5920
5921
5922
5923 # Then required tools that require some special treatment.
5924 for ac_prog in gawk mawk nawk awk
5925 do
5926 # Extract the first word of "$ac_prog", so it can be a program name with args.
5927 set dummy $ac_prog; ac_word=$2
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5929 $as_echo_n "checking for $ac_word... " >&6; }
5930 if ${ac_cv_prog_AWK+:} false; then :
5931 $as_echo_n "(cached) " >&6
5932 else
5933 if test -n "$AWK"; then
5934 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5935 else
5936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5937 for as_dir in $PATH
5938 do
5939 IFS=$as_save_IFS
5940 test -z "$as_dir" && as_dir=.
5941 for ac_exec_ext in '' $ac_executable_extensions; do
5942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5943 ac_cv_prog_AWK="$ac_prog"
5944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5945 break 2
5946 fi
5947 done
5948 done
5949 IFS=$as_save_IFS
5950
5960 fi
5961
5962
5963 test -n "$AWK" && break
5964 done
5965
5966
5967 if test "x$AWK" = x; then
5968 if test "x" = x; then
5969 PROG_NAME=awk
5970 else
5971 PROG_NAME=
5972 fi
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
5974 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
5975 as_fn_error $? "Cannot continue" "$LINENO" 5
5976 fi
5977
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5979 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5980 if ${ac_cv_path_GREP+:} false; then :
5981 $as_echo_n "(cached) " >&6
5982 else
5983 if test -z "$GREP"; then
5984 ac_path_GREP_found=false
5985 # Loop through the user's path and test for each of PROGNAME-LIST
5986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5987 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5988 do
5989 IFS=$as_save_IFS
5990 test -z "$as_dir" && as_dir=.
5991 for ac_prog in grep ggrep; do
5992 for ac_exec_ext in '' $ac_executable_extensions; do
5993 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5994 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5995 # Check for GNU ac_path_GREP and select it if it is found.
5996 # Check for GNU $ac_path_GREP
5997 case `"$ac_path_GREP" --version 2>&1` in
5998 *GNU*)
5999 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6000 *)
6035 fi
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6037 $as_echo "$ac_cv_path_GREP" >&6; }
6038 GREP="$ac_cv_path_GREP"
6039
6040
6041
6042 if test "x$GREP" = x; then
6043 if test "x" = x; then
6044 PROG_NAME=grep
6045 else
6046 PROG_NAME=
6047 fi
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6049 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6050 as_fn_error $? "Cannot continue" "$LINENO" 5
6051 fi
6052
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6054 $as_echo_n "checking for egrep... " >&6; }
6055 if ${ac_cv_path_EGREP+:} false; then :
6056 $as_echo_n "(cached) " >&6
6057 else
6058 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6059 then ac_cv_path_EGREP="$GREP -E"
6060 else
6061 if test -z "$EGREP"; then
6062 ac_path_EGREP_found=false
6063 # Loop through the user's path and test for each of PROGNAME-LIST
6064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6065 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6066 do
6067 IFS=$as_save_IFS
6068 test -z "$as_dir" && as_dir=.
6069 for ac_prog in egrep; do
6070 for ac_exec_ext in '' $ac_executable_extensions; do
6071 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6072 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6073 # Check for GNU ac_path_EGREP and select it if it is found.
6074 # Check for GNU $ac_path_EGREP
6075 case `"$ac_path_EGREP" --version 2>&1` in
6114 fi
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6116 $as_echo "$ac_cv_path_EGREP" >&6; }
6117 EGREP="$ac_cv_path_EGREP"
6118
6119
6120
6121 if test "x$EGREP" = x; then
6122 if test "x" = x; then
6123 PROG_NAME=egrep
6124 else
6125 PROG_NAME=
6126 fi
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6128 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6129 as_fn_error $? "Cannot continue" "$LINENO" 5
6130 fi
6131
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6133 $as_echo_n "checking for fgrep... " >&6; }
6134 if ${ac_cv_path_FGREP+:} false; then :
6135 $as_echo_n "(cached) " >&6
6136 else
6137 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6138 then ac_cv_path_FGREP="$GREP -F"
6139 else
6140 if test -z "$FGREP"; then
6141 ac_path_FGREP_found=false
6142 # Loop through the user's path and test for each of PROGNAME-LIST
6143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6144 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6145 do
6146 IFS=$as_save_IFS
6147 test -z "$as_dir" && as_dir=.
6148 for ac_prog in fgrep; do
6149 for ac_exec_ext in '' $ac_executable_extensions; do
6150 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6151 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6152 # Check for GNU ac_path_FGREP and select it if it is found.
6153 # Check for GNU $ac_path_FGREP
6154 case `"$ac_path_FGREP" --version 2>&1` in
6193 fi
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6195 $as_echo "$ac_cv_path_FGREP" >&6; }
6196 FGREP="$ac_cv_path_FGREP"
6197
6198
6199
6200 if test "x$FGREP" = x; then
6201 if test "x" = x; then
6202 PROG_NAME=fgrep
6203 else
6204 PROG_NAME=
6205 fi
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6207 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6208 as_fn_error $? "Cannot continue" "$LINENO" 5
6209 fi
6210
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6212 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6213 if ${ac_cv_path_SED+:} false; then :
6214 $as_echo_n "(cached) " >&6
6215 else
6216 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6217 for ac_i in 1 2 3 4 5 6 7; do
6218 ac_script="$ac_script$as_nl$ac_script"
6219 done
6220 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6221 { ac_script=; unset ac_script;}
6222 if test -z "$SED"; then
6223 ac_path_SED_found=false
6224 # Loop through the user's path and test for each of PROGNAME-LIST
6225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6226 for as_dir in $PATH
6227 do
6228 IFS=$as_save_IFS
6229 test -z "$as_dir" && as_dir=.
6230 for ac_prog in sed gsed; do
6231 for ac_exec_ext in '' $ac_executable_extensions; do
6232 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6233 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6279
6280
6281 if test "x$SED" = x; then
6282 if test "x" = x; then
6283 PROG_NAME=sed
6284 else
6285 PROG_NAME=
6286 fi
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6288 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6289 as_fn_error $? "Cannot continue" "$LINENO" 5
6290 fi
6291
6292
6293 for ac_prog in nawk gawk awk
6294 do
6295 # Extract the first word of "$ac_prog", so it can be a program name with args.
6296 set dummy $ac_prog; ac_word=$2
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6298 $as_echo_n "checking for $ac_word... " >&6; }
6299 if ${ac_cv_path_NAWK+:} false; then :
6300 $as_echo_n "(cached) " >&6
6301 else
6302 case $NAWK in
6303 [\\/]* | ?:[\\/]*)
6304 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
6305 ;;
6306 *)
6307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6308 for as_dir in $PATH
6309 do
6310 IFS=$as_save_IFS
6311 test -z "$as_dir" && as_dir=.
6312 for ac_exec_ext in '' $ac_executable_extensions; do
6313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6314 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
6315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6316 break 2
6317 fi
6318 done
6319 done
6339 if test "x$NAWK" = x; then
6340 if test "x" = x; then
6341 PROG_NAME=nawk
6342 else
6343 PROG_NAME=
6344 fi
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
6346 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
6347 as_fn_error $? "Cannot continue" "$LINENO" 5
6348 fi
6349
6350
6351 # Always force rm.
6352 RM="$RM -f"
6353
6354 # These are not required on all platforms
6355 # Extract the first word of "cygpath", so it can be a program name with args.
6356 set dummy cygpath; ac_word=$2
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6358 $as_echo_n "checking for $ac_word... " >&6; }
6359 if ${ac_cv_path_CYGPATH+:} false; then :
6360 $as_echo_n "(cached) " >&6
6361 else
6362 case $CYGPATH in
6363 [\\/]* | ?:[\\/]*)
6364 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
6365 ;;
6366 *)
6367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6368 for as_dir in $PATH
6369 do
6370 IFS=$as_save_IFS
6371 test -z "$as_dir" && as_dir=.
6372 for ac_exec_ext in '' $ac_executable_extensions; do
6373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6374 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
6375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6376 break 2
6377 fi
6378 done
6379 done
6380 IFS=$as_save_IFS
6381
6382 ;;
6383 esac
6384 fi
6385 CYGPATH=$ac_cv_path_CYGPATH
6386 if test -n "$CYGPATH"; then
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
6388 $as_echo "$CYGPATH" >&6; }
6389 else
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6391 $as_echo "no" >&6; }
6392 fi
6393
6394
6395 # Extract the first word of "readlink", so it can be a program name with args.
6396 set dummy readlink; ac_word=$2
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6398 $as_echo_n "checking for $ac_word... " >&6; }
6399 if ${ac_cv_path_READLINK+:} false; then :
6400 $as_echo_n "(cached) " >&6
6401 else
6402 case $READLINK in
6403 [\\/]* | ?:[\\/]*)
6404 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
6405 ;;
6406 *)
6407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6408 for as_dir in $PATH
6409 do
6410 IFS=$as_save_IFS
6411 test -z "$as_dir" && as_dir=.
6412 for ac_exec_ext in '' $ac_executable_extensions; do
6413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6414 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
6415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6416 break 2
6417 fi
6418 done
6419 done
6420 IFS=$as_save_IFS
6421
6422 ;;
6423 esac
6424 fi
6425 READLINK=$ac_cv_path_READLINK
6426 if test -n "$READLINK"; then
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
6428 $as_echo "$READLINK" >&6; }
6429 else
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6431 $as_echo "no" >&6; }
6432 fi
6433
6434
6435 # Extract the first word of "df", so it can be a program name with args.
6436 set dummy df; ac_word=$2
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6438 $as_echo_n "checking for $ac_word... " >&6; }
6439 if ${ac_cv_path_DF+:} false; then :
6440 $as_echo_n "(cached) " >&6
6441 else
6442 case $DF in
6443 [\\/]* | ?:[\\/]*)
6444 ac_cv_path_DF="$DF" # Let the user override the test with a path.
6445 ;;
6446 *)
6447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6448 for as_dir in $PATH
6449 do
6450 IFS=$as_save_IFS
6451 test -z "$as_dir" && as_dir=.
6452 for ac_exec_ext in '' $ac_executable_extensions; do
6453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6454 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
6455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6456 break 2
6457 fi
6458 done
6459 done
6460 IFS=$as_save_IFS
6461
6462 ;;
6463 esac
6464 fi
6465 DF=$ac_cv_path_DF
6466 if test -n "$DF"; then
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
6468 $as_echo "$DF" >&6; }
6469 else
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6471 $as_echo "no" >&6; }
6472 fi
6473
6474
6475 # Extract the first word of "SetFile", so it can be a program name with args.
6476 set dummy SetFile; ac_word=$2
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6478 $as_echo_n "checking for $ac_word... " >&6; }
6479 if ${ac_cv_path_SETFILE+:} false; then :
6480 $as_echo_n "(cached) " >&6
6481 else
6482 case $SETFILE in
6483 [\\/]* | ?:[\\/]*)
6484 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
6485 ;;
6486 *)
6487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6488 for as_dir in $PATH
6489 do
6490 IFS=$as_save_IFS
6491 test -z "$as_dir" && as_dir=.
6492 for ac_exec_ext in '' $ac_executable_extensions; do
6493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6494 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
6495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6496 break 2
6497 fi
6498 done
6499 done
6505 SETFILE=$ac_cv_path_SETFILE
6506 if test -n "$SETFILE"; then
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
6508 $as_echo "$SETFILE" >&6; }
6509 else
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6511 $as_echo "no" >&6; }
6512 fi
6513
6514
6515
6516
6517 # Now we can determine OpenJDK build and target platforms. This is required to
6518 # have early on.
6519 # Make sure we can run config.sub.
6520 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6521 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6522
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6524 $as_echo_n "checking build system type... " >&6; }
6525 if ${ac_cv_build+:} false; then :
6526 $as_echo_n "(cached) " >&6
6527 else
6528 ac_build_alias=$build_alias
6529 test "x$ac_build_alias" = x &&
6530 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6531 test "x$ac_build_alias" = x &&
6532 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6533 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6534 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6535
6536 fi
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6538 $as_echo "$ac_cv_build" >&6; }
6539 case $ac_cv_build in
6540 *-*-*) ;;
6541 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6542 esac
6543 build=$ac_cv_build
6544 ac_save_IFS=$IFS; IFS='-'
6545 set x $ac_cv_build
6546 shift
6547 build_cpu=$1
6548 build_vendor=$2
6549 shift; shift
6550 # Remember, the first character of IFS is used to create $*,
6551 # except with old shells:
6552 build_os=$*
6553 IFS=$ac_save_IFS
6554 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6555
6556
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6558 $as_echo_n "checking host system type... " >&6; }
6559 if ${ac_cv_host+:} false; then :
6560 $as_echo_n "(cached) " >&6
6561 else
6562 if test "x$host_alias" = x; then
6563 ac_cv_host=$ac_cv_build
6564 else
6565 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6566 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6567 fi
6568
6569 fi
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6571 $as_echo "$ac_cv_host" >&6; }
6572 case $ac_cv_host in
6573 *-*-*) ;;
6574 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6575 esac
6576 host=$ac_cv_host
6577 ac_save_IFS=$IFS; IFS='-'
6578 set x $ac_cv_host
6579 shift
6580 host_cpu=$1
6581 host_vendor=$2
6582 shift; shift
6583 # Remember, the first character of IFS is used to create $*,
6584 # except with old shells:
6585 host_os=$*
6586 IFS=$ac_save_IFS
6587 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6588
6589
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
6591 $as_echo_n "checking target system type... " >&6; }
6592 if ${ac_cv_target+:} false; then :
6593 $as_echo_n "(cached) " >&6
6594 else
6595 if test "x$target_alias" = x; then
6596 ac_cv_target=$ac_cv_host
6597 else
6598 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
6599 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
6600 fi
6601
6602 fi
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
6604 $as_echo "$ac_cv_target" >&6; }
6605 case $ac_cv_target in
6606 *-*-*) ;;
6607 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
6608 esac
6609 target=$ac_cv_target
6610 ac_save_IFS=$IFS; IFS='-'
6611 set x $ac_cv_target
6612 shift
6613 target_cpu=$1
6614 target_vendor=$2
6615 shift; shift
6616 # Remember, the first character of IFS is used to create $*,
6617 # except with old shells:
6618 target_os=$*
6619 IFS=$ac_save_IFS
6620 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
6621
6622
6623 # The aliases save the names the user supplied, while $host etc.
6624 # will get canonicalized.
6625 test -n "$target_alias" &&
6626 test "$program_prefix$program_suffix$program_transform_name" = \
6627 NONENONEs,x,x, &&
8053 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in"
8054
8055 # The generated Makefile knows where the spec.gmk is and where the source is.
8056 # You can run make from the OUTPUT_ROOT, or from the top-level Makefile
8057 # which will look for generated configurations
8058 ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in"
8059
8060
8061 # Save the arguments given to us
8062 echo "$CONFIGURE_COMMAND_LINE" > $OUTPUT_ROOT/configure-arguments
8063
8064
8065 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
8066
8067 for ac_prog in apt-get yum port pkgutil pkgadd
8068 do
8069 # Extract the first word of "$ac_prog", so it can be a program name with args.
8070 set dummy $ac_prog; ac_word=$2
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8072 $as_echo_n "checking for $ac_word... " >&6; }
8073 if ${ac_cv_prog_PKGHANDLER+:} false; then :
8074 $as_echo_n "(cached) " >&6
8075 else
8076 if test -n "$PKGHANDLER"; then
8077 ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
8078 else
8079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8080 for as_dir in $PATH
8081 do
8082 IFS=$as_save_IFS
8083 test -z "$as_dir" && as_dir=.
8084 for ac_exec_ext in '' $ac_executable_extensions; do
8085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8086 ac_cv_prog_PKGHANDLER="$ac_prog"
8087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8088 break 2
8089 fi
8090 done
8091 done
8092 IFS=$as_save_IFS
8093
8155 FOUND_MAKE=$MAKE_CANDIDATE
8156
8157 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
8158
8159 # First separate the path from the arguments. This will split at the first
8160 # space.
8161 complete="$FOUND_MAKE"
8162 path="${complete%% *}"
8163 tmp="$complete EOL"
8164 arguments="${tmp#* }"
8165
8166 # Input might be given as Windows format, start by converting to
8167 # unix format.
8168 new_path=`$CYGPATH -u "$path"`
8169
8170 # Now try to locate executable using which
8171 new_path=`$WHICH "$new_path" 2> /dev/null`
8172 # bat and cmd files are not always considered executable in cygwin causing which
8173 # to not find them
8174 if test "x$new_path" = x \
8175 && test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
8176 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
8177 new_path=`$CYGPATH -u "$path"`
8178 fi
8179 if test "x$new_path" = x; then
8180 # Oops. Which didn't find the executable.
8181 # The splitting of arguments from the executable at a space might have been incorrect,
8182 # since paths with space are more likely in Windows. Give it another try with the whole
8183 # argument.
8184 path="$complete"
8185 arguments="EOL"
8186 new_path=`$CYGPATH -u "$path"`
8187 new_path=`$WHICH "$new_path" 2> /dev/null`
8188 # bat and cmd files are not always considered executable in cygwin causing which
8189 # to not find them
8190 if test "x$new_path" = x \
8191 && test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
8192 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
8193 new_path=`$CYGPATH -u "$path"`
8194 fi
8195 if test "x$new_path" = x; then
8196 # It's still not found. Now this is an unrecoverable error.
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
8198 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
8199 has_space=`$ECHO "$complete" | $GREP " "`
8200 if test "x$has_space" != x; then
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
8202 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
8203 fi
8204 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
8205 fi
8206 fi
8207
8208 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
8209 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
8210 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
8211 # "foo.exe" is OK but "foo" is an error.
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
8419 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
8420 fi
8421
8422 fi
8423 fi
8424 fi
8425 fi
8426
8427 if test "x$FOUND_MAKE" = x; then
8428 as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer." "$LINENO" 5
8429 fi
8430 else
8431 # Try our hardest to locate a correct version of GNU make
8432 for ac_prog in gmake
8433 do
8434 # Extract the first word of "$ac_prog", so it can be a program name with args.
8435 set dummy $ac_prog; ac_word=$2
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8437 $as_echo_n "checking for $ac_word... " >&6; }
8438 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
8439 $as_echo_n "(cached) " >&6
8440 else
8441 case $CHECK_GMAKE in
8442 [\\/]* | ?:[\\/]*)
8443 ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
8444 ;;
8445 *)
8446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8447 for as_dir in $PATH
8448 do
8449 IFS=$as_save_IFS
8450 test -z "$as_dir" && as_dir=.
8451 for ac_exec_ext in '' $ac_executable_extensions; do
8452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8453 ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
8454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8455 break 2
8456 fi
8457 done
8458 done
8512 FOUND_MAKE=$MAKE_CANDIDATE
8513
8514 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
8515
8516 # First separate the path from the arguments. This will split at the first
8517 # space.
8518 complete="$FOUND_MAKE"
8519 path="${complete%% *}"
8520 tmp="$complete EOL"
8521 arguments="${tmp#* }"
8522
8523 # Input might be given as Windows format, start by converting to
8524 # unix format.
8525 new_path=`$CYGPATH -u "$path"`
8526
8527 # Now try to locate executable using which
8528 new_path=`$WHICH "$new_path" 2> /dev/null`
8529 # bat and cmd files are not always considered executable in cygwin causing which
8530 # to not find them
8531 if test "x$new_path" = x \
8532 && test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
8533 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
8534 new_path=`$CYGPATH -u "$path"`
8535 fi
8536 if test "x$new_path" = x; then
8537 # Oops. Which didn't find the executable.
8538 # The splitting of arguments from the executable at a space might have been incorrect,
8539 # since paths with space are more likely in Windows. Give it another try with the whole
8540 # argument.
8541 path="$complete"
8542 arguments="EOL"
8543 new_path=`$CYGPATH -u "$path"`
8544 new_path=`$WHICH "$new_path" 2> /dev/null`
8545 # bat and cmd files are not always considered executable in cygwin causing which
8546 # to not find them
8547 if test "x$new_path" = x \
8548 && test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
8549 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
8550 new_path=`$CYGPATH -u "$path"`
8551 fi
8552 if test "x$new_path" = x; then
8553 # It's still not found. Now this is an unrecoverable error.
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
8555 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
8556 has_space=`$ECHO "$complete" | $GREP " "`
8557 if test "x$has_space" != x; then
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
8559 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
8560 fi
8561 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
8562 fi
8563 fi
8564
8565 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
8566 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
8567 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
8568 # "foo.exe" is OK but "foo" is an error.
8772
8773 if test "x$complete" != "x$new_complete"; then
8774 FOUND_MAKE="$new_complete"
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
8776 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
8777 fi
8778
8779 fi
8780 fi
8781 fi
8782 fi
8783
8784
8785 if test "x$FOUND_MAKE" = x; then
8786 for ac_prog in make
8787 do
8788 # Extract the first word of "$ac_prog", so it can be a program name with args.
8789 set dummy $ac_prog; ac_word=$2
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8791 $as_echo_n "checking for $ac_word... " >&6; }
8792 if ${ac_cv_path_CHECK_MAKE+:} false; then :
8793 $as_echo_n "(cached) " >&6
8794 else
8795 case $CHECK_MAKE in
8796 [\\/]* | ?:[\\/]*)
8797 ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
8798 ;;
8799 *)
8800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8801 for as_dir in $PATH
8802 do
8803 IFS=$as_save_IFS
8804 test -z "$as_dir" && as_dir=.
8805 for ac_exec_ext in '' $ac_executable_extensions; do
8806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8807 ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
8808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8809 break 2
8810 fi
8811 done
8812 done
8866 FOUND_MAKE=$MAKE_CANDIDATE
8867
8868 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
8869
8870 # First separate the path from the arguments. This will split at the first
8871 # space.
8872 complete="$FOUND_MAKE"
8873 path="${complete%% *}"
8874 tmp="$complete EOL"
8875 arguments="${tmp#* }"
8876
8877 # Input might be given as Windows format, start by converting to
8878 # unix format.
8879 new_path=`$CYGPATH -u "$path"`
8880
8881 # Now try to locate executable using which
8882 new_path=`$WHICH "$new_path" 2> /dev/null`
8883 # bat and cmd files are not always considered executable in cygwin causing which
8884 # to not find them
8885 if test "x$new_path" = x \
8886 && test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
8887 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
8888 new_path=`$CYGPATH -u "$path"`
8889 fi
8890 if test "x$new_path" = x; then
8891 # Oops. Which didn't find the executable.
8892 # The splitting of arguments from the executable at a space might have been incorrect,
8893 # since paths with space are more likely in Windows. Give it another try with the whole
8894 # argument.
8895 path="$complete"
8896 arguments="EOL"
8897 new_path=`$CYGPATH -u "$path"`
8898 new_path=`$WHICH "$new_path" 2> /dev/null`
8899 # bat and cmd files are not always considered executable in cygwin causing which
8900 # to not find them
8901 if test "x$new_path" = x \
8902 && test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
8903 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
8904 new_path=`$CYGPATH -u "$path"`
8905 fi
8906 if test "x$new_path" = x; then
8907 # It's still not found. Now this is an unrecoverable error.
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
8909 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
8910 has_space=`$ECHO "$complete" | $GREP " "`
8911 if test "x$has_space" != x; then
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
8913 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
8914 fi
8915 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
8916 fi
8917 fi
8918
8919 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
8920 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
8921 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
8922 # "foo.exe" is OK but "foo" is an error.
9131 fi
9132
9133 fi
9134 fi
9135 fi
9136 fi
9137
9138 fi
9139
9140 if test "x$FOUND_MAKE" = x; then
9141 if test "x$TOOLS_DIR" != x; then
9142 # We have a tools-dir, check that as well before giving up.
9143 OLD_PATH=$PATH
9144 PATH=$TOOLS_DIR:$PATH
9145 for ac_prog in gmake
9146 do
9147 # Extract the first word of "$ac_prog", so it can be a program name with args.
9148 set dummy $ac_prog; ac_word=$2
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9150 $as_echo_n "checking for $ac_word... " >&6; }
9151 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
9152 $as_echo_n "(cached) " >&6
9153 else
9154 case $CHECK_TOOLSDIR_GMAKE in
9155 [\\/]* | ?:[\\/]*)
9156 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
9157 ;;
9158 *)
9159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9160 for as_dir in $PATH
9161 do
9162 IFS=$as_save_IFS
9163 test -z "$as_dir" && as_dir=.
9164 for ac_exec_ext in '' $ac_executable_extensions; do
9165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9166 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
9167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9168 break 2
9169 fi
9170 done
9171 done
9225 FOUND_MAKE=$MAKE_CANDIDATE
9226
9227 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
9228
9229 # First separate the path from the arguments. This will split at the first
9230 # space.
9231 complete="$FOUND_MAKE"
9232 path="${complete%% *}"
9233 tmp="$complete EOL"
9234 arguments="${tmp#* }"
9235
9236 # Input might be given as Windows format, start by converting to
9237 # unix format.
9238 new_path=`$CYGPATH -u "$path"`
9239
9240 # Now try to locate executable using which
9241 new_path=`$WHICH "$new_path" 2> /dev/null`
9242 # bat and cmd files are not always considered executable in cygwin causing which
9243 # to not find them
9244 if test "x$new_path" = x \
9245 && test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
9246 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
9247 new_path=`$CYGPATH -u "$path"`
9248 fi
9249 if test "x$new_path" = x; then
9250 # Oops. Which didn't find the executable.
9251 # The splitting of arguments from the executable at a space might have been incorrect,
9252 # since paths with space are more likely in Windows. Give it another try with the whole
9253 # argument.
9254 path="$complete"
9255 arguments="EOL"
9256 new_path=`$CYGPATH -u "$path"`
9257 new_path=`$WHICH "$new_path" 2> /dev/null`
9258 # bat and cmd files are not always considered executable in cygwin causing which
9259 # to not find them
9260 if test "x$new_path" = x \
9261 && test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
9262 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
9263 new_path=`$CYGPATH -u "$path"`
9264 fi
9265 if test "x$new_path" = x; then
9266 # It's still not found. Now this is an unrecoverable error.
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
9268 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
9269 has_space=`$ECHO "$complete" | $GREP " "`
9270 if test "x$has_space" != x; then
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
9272 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
9273 fi
9274 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
9275 fi
9276 fi
9277
9278 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
9279 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
9280 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
9281 # "foo.exe" is OK but "foo" is an error.
9484 fi
9485
9486 if test "x$complete" != "x$new_complete"; then
9487 FOUND_MAKE="$new_complete"
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
9489 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
9490 fi
9491
9492 fi
9493 fi
9494 fi
9495 fi
9496
9497 if test "x$FOUND_MAKE" = x; then
9498 for ac_prog in make
9499 do
9500 # Extract the first word of "$ac_prog", so it can be a program name with args.
9501 set dummy $ac_prog; ac_word=$2
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9503 $as_echo_n "checking for $ac_word... " >&6; }
9504 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
9505 $as_echo_n "(cached) " >&6
9506 else
9507 case $CHECK_TOOLSDIR_MAKE in
9508 [\\/]* | ?:[\\/]*)
9509 ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
9510 ;;
9511 *)
9512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9513 for as_dir in $PATH
9514 do
9515 IFS=$as_save_IFS
9516 test -z "$as_dir" && as_dir=.
9517 for ac_exec_ext in '' $ac_executable_extensions; do
9518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9519 ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
9520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9521 break 2
9522 fi
9523 done
9524 done
9578 FOUND_MAKE=$MAKE_CANDIDATE
9579
9580 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
9581
9582 # First separate the path from the arguments. This will split at the first
9583 # space.
9584 complete="$FOUND_MAKE"
9585 path="${complete%% *}"
9586 tmp="$complete EOL"
9587 arguments="${tmp#* }"
9588
9589 # Input might be given as Windows format, start by converting to
9590 # unix format.
9591 new_path=`$CYGPATH -u "$path"`
9592
9593 # Now try to locate executable using which
9594 new_path=`$WHICH "$new_path" 2> /dev/null`
9595 # bat and cmd files are not always considered executable in cygwin causing which
9596 # to not find them
9597 if test "x$new_path" = x \
9598 && test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
9599 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
9600 new_path=`$CYGPATH -u "$path"`
9601 fi
9602 if test "x$new_path" = x; then
9603 # Oops. Which didn't find the executable.
9604 # The splitting of arguments from the executable at a space might have been incorrect,
9605 # since paths with space are more likely in Windows. Give it another try with the whole
9606 # argument.
9607 path="$complete"
9608 arguments="EOL"
9609 new_path=`$CYGPATH -u "$path"`
9610 new_path=`$WHICH "$new_path" 2> /dev/null`
9611 # bat and cmd files are not always considered executable in cygwin causing which
9612 # to not find them
9613 if test "x$new_path" = x \
9614 && test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
9615 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
9616 new_path=`$CYGPATH -u "$path"`
9617 fi
9618 if test "x$new_path" = x; then
9619 # It's still not found. Now this is an unrecoverable error.
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
9621 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
9622 has_space=`$ECHO "$complete" | $GREP " "`
9623 if test "x$has_space" != x; then
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
9625 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
9626 fi
9627 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
9628 fi
9629 fi
9630
9631 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
9632 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
9633 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
9634 # "foo.exe" is OK but "foo" is an error.
9880 FIND_DELETE="-exec rm \{\} \+"
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9882 $as_echo "no" >&6; }
9883 else
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9885 $as_echo "yes" >&6; }
9886 fi
9887 rmdir $DELETEDIR
9888
9889
9890
9891 # These tools might not be installed by default,
9892 # need hint on how to install them.
9893
9894 for ac_prog in unzip
9895 do
9896 # Extract the first word of "$ac_prog", so it can be a program name with args.
9897 set dummy $ac_prog; ac_word=$2
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9899 $as_echo_n "checking for $ac_word... " >&6; }
9900 if ${ac_cv_path_UNZIP+:} false; then :
9901 $as_echo_n "(cached) " >&6
9902 else
9903 case $UNZIP in
9904 [\\/]* | ?:[\\/]*)
9905 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
9906 ;;
9907 *)
9908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9909 for as_dir in $PATH
9910 do
9911 IFS=$as_save_IFS
9912 test -z "$as_dir" && as_dir=.
9913 for ac_exec_ext in '' $ac_executable_extensions; do
9914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9915 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
9916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9917 break 2
9918 fi
9919 done
9920 done
9939
9940 if test "x$UNZIP" = x; then
9941 if test "xunzip" = x; then
9942 PROG_NAME=unzip
9943 else
9944 PROG_NAME=unzip
9945 fi
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
9947 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
9948 as_fn_error $? "Cannot continue" "$LINENO" 5
9949 fi
9950
9951
9952
9953 for ac_prog in zip
9954 do
9955 # Extract the first word of "$ac_prog", so it can be a program name with args.
9956 set dummy $ac_prog; ac_word=$2
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9958 $as_echo_n "checking for $ac_word... " >&6; }
9959 if ${ac_cv_path_ZIP+:} false; then :
9960 $as_echo_n "(cached) " >&6
9961 else
9962 case $ZIP in
9963 [\\/]* | ?:[\\/]*)
9964 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
9965 ;;
9966 *)
9967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9968 for as_dir in $PATH
9969 do
9970 IFS=$as_save_IFS
9971 test -z "$as_dir" && as_dir=.
9972 for ac_exec_ext in '' $ac_executable_extensions; do
9973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9974 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
9975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9976 break 2
9977 fi
9978 done
9979 done
9998
9999 if test "x$ZIP" = x; then
10000 if test "xzip" = x; then
10001 PROG_NAME=zip
10002 else
10003 PROG_NAME=zip
10004 fi
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
10006 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
10007 as_fn_error $? "Cannot continue" "$LINENO" 5
10008 fi
10009
10010
10011
10012 # Non-required basic tools
10013
10014 # Extract the first word of "ldd", so it can be a program name with args.
10015 set dummy ldd; ac_word=$2
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10017 $as_echo_n "checking for $ac_word... " >&6; }
10018 if ${ac_cv_path_LDD+:} false; then :
10019 $as_echo_n "(cached) " >&6
10020 else
10021 case $LDD in
10022 [\\/]* | ?:[\\/]*)
10023 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
10024 ;;
10025 *)
10026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10027 for as_dir in $PATH
10028 do
10029 IFS=$as_save_IFS
10030 test -z "$as_dir" && as_dir=.
10031 for ac_exec_ext in '' $ac_executable_extensions; do
10032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10033 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
10034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10035 break 2
10036 fi
10037 done
10038 done
10044 LDD=$ac_cv_path_LDD
10045 if test -n "$LDD"; then
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
10047 $as_echo "$LDD" >&6; }
10048 else
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10050 $as_echo "no" >&6; }
10051 fi
10052
10053
10054 if test "x$LDD" = "x"; then
10055 # List shared lib dependencies is used for
10056 # debug output and checking for forbidden dependencies.
10057 # We can build without it.
10058 LDD="true"
10059 fi
10060 # Extract the first word of "otool", so it can be a program name with args.
10061 set dummy otool; ac_word=$2
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10063 $as_echo_n "checking for $ac_word... " >&6; }
10064 if ${ac_cv_path_OTOOL+:} false; then :
10065 $as_echo_n "(cached) " >&6
10066 else
10067 case $OTOOL in
10068 [\\/]* | ?:[\\/]*)
10069 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
10070 ;;
10071 *)
10072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10073 for as_dir in $PATH
10074 do
10075 IFS=$as_save_IFS
10076 test -z "$as_dir" && as_dir=.
10077 for ac_exec_ext in '' $ac_executable_extensions; do
10078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10079 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
10080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10081 break 2
10082 fi
10083 done
10084 done
10089 fi
10090 OTOOL=$ac_cv_path_OTOOL
10091 if test -n "$OTOOL"; then
10092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10093 $as_echo "$OTOOL" >&6; }
10094 else
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10096 $as_echo "no" >&6; }
10097 fi
10098
10099
10100 if test "x$OTOOL" = "x"; then
10101 OTOOL="true"
10102 fi
10103 for ac_prog in readelf greadelf
10104 do
10105 # Extract the first word of "$ac_prog", so it can be a program name with args.
10106 set dummy $ac_prog; ac_word=$2
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10108 $as_echo_n "checking for $ac_word... " >&6; }
10109 if ${ac_cv_path_READELF+:} false; then :
10110 $as_echo_n "(cached) " >&6
10111 else
10112 case $READELF in
10113 [\\/]* | ?:[\\/]*)
10114 ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
10115 ;;
10116 *)
10117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10118 for as_dir in $PATH
10119 do
10120 IFS=$as_save_IFS
10121 test -z "$as_dir" && as_dir=.
10122 for ac_exec_ext in '' $ac_executable_extensions; do
10123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10124 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
10125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10126 break 2
10127 fi
10128 done
10129 done
10132 ;;
10133 esac
10134 fi
10135 READELF=$ac_cv_path_READELF
10136 if test -n "$READELF"; then
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10138 $as_echo "$READELF" >&6; }
10139 else
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10141 $as_echo "no" >&6; }
10142 fi
10143
10144
10145 test -n "$READELF" && break
10146 done
10147
10148 # Extract the first word of "hg", so it can be a program name with args.
10149 set dummy hg; ac_word=$2
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10151 $as_echo_n "checking for $ac_word... " >&6; }
10152 if ${ac_cv_path_HG+:} false; then :
10153 $as_echo_n "(cached) " >&6
10154 else
10155 case $HG in
10156 [\\/]* | ?:[\\/]*)
10157 ac_cv_path_HG="$HG" # Let the user override the test with a path.
10158 ;;
10159 *)
10160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10161 for as_dir in $PATH
10162 do
10163 IFS=$as_save_IFS
10164 test -z "$as_dir" && as_dir=.
10165 for ac_exec_ext in '' $ac_executable_extensions; do
10166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10167 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
10168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10169 break 2
10170 fi
10171 done
10172 done
10173 IFS=$as_save_IFS
10174
10175 ;;
10176 esac
10177 fi
10178 HG=$ac_cv_path_HG
10179 if test -n "$HG"; then
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
10181 $as_echo "$HG" >&6; }
10182 else
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10184 $as_echo "no" >&6; }
10185 fi
10186
10187
10188 # Extract the first word of "stat", so it can be a program name with args.
10189 set dummy stat; ac_word=$2
10190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10191 $as_echo_n "checking for $ac_word... " >&6; }
10192 if ${ac_cv_path_STAT+:} false; then :
10193 $as_echo_n "(cached) " >&6
10194 else
10195 case $STAT in
10196 [\\/]* | ?:[\\/]*)
10197 ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
10198 ;;
10199 *)
10200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10201 for as_dir in $PATH
10202 do
10203 IFS=$as_save_IFS
10204 test -z "$as_dir" && as_dir=.
10205 for ac_exec_ext in '' $ac_executable_extensions; do
10206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10207 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
10208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10209 break 2
10210 fi
10211 done
10212 done
10213 IFS=$as_save_IFS
10214
10215 ;;
10216 esac
10217 fi
10218 STAT=$ac_cv_path_STAT
10219 if test -n "$STAT"; then
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
10221 $as_echo "$STAT" >&6; }
10222 else
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10224 $as_echo "no" >&6; }
10225 fi
10226
10227
10228 # Extract the first word of "time", so it can be a program name with args.
10229 set dummy time; ac_word=$2
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10231 $as_echo_n "checking for $ac_word... " >&6; }
10232 if ${ac_cv_path_TIME+:} false; then :
10233 $as_echo_n "(cached) " >&6
10234 else
10235 case $TIME in
10236 [\\/]* | ?:[\\/]*)
10237 ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
10238 ;;
10239 *)
10240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10241 for as_dir in $PATH
10242 do
10243 IFS=$as_save_IFS
10244 test -z "$as_dir" && as_dir=.
10245 for ac_exec_ext in '' $ac_executable_extensions; do
10246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10247 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
10248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10249 break 2
10250 fi
10251 done
10252 done
10257 fi
10258 TIME=$ac_cv_path_TIME
10259 if test -n "$TIME"; then
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
10261 $as_echo "$TIME" >&6; }
10262 else
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10264 $as_echo "no" >&6; }
10265 fi
10266
10267
10268
10269 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
10270
10271 for ac_prog in comm
10272 do
10273 # Extract the first word of "$ac_prog", so it can be a program name with args.
10274 set dummy $ac_prog; ac_word=$2
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10276 $as_echo_n "checking for $ac_word... " >&6; }
10277 if ${ac_cv_path_COMM+:} false; then :
10278 $as_echo_n "(cached) " >&6
10279 else
10280 case $COMM in
10281 [\\/]* | ?:[\\/]*)
10282 ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
10283 ;;
10284 *)
10285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10286 for as_dir in $PATH
10287 do
10288 IFS=$as_save_IFS
10289 test -z "$as_dir" && as_dir=.
10290 for ac_exec_ext in '' $ac_executable_extensions; do
10291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10292 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
10293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10294 break 2
10295 fi
10296 done
10297 done
10321 PROG_NAME=comm
10322 fi
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $PROG_NAME!" >&5
10324 $as_echo "$as_me: Could not find $PROG_NAME!" >&6;}
10325 as_fn_error $? "Cannot continue" "$LINENO" 5
10326 fi
10327
10328
10329 fi
10330
10331
10332 # Check if pkg-config is available.
10333
10334
10335 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10336 if test -n "$ac_tool_prefix"; then
10337 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10338 set dummy ${ac_tool_prefix}pkg-config; 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_PKG_CONFIG+:} false; then :
10342 $as_echo_n "(cached) " >&6
10343 else
10344 case $PKG_CONFIG in
10345 [\\/]* | ?:[\\/]*)
10346 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10356 ac_cv_path_PKG_CONFIG="$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
10364 ;;
10365 esac
10366 fi
10367 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10368 if test -n "$PKG_CONFIG"; then
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10370 $as_echo "$PKG_CONFIG" >&6; }
10371 else
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10373 $as_echo "no" >&6; }
10374 fi
10375
10376
10377 fi
10378 if test -z "$ac_cv_path_PKG_CONFIG"; then
10379 ac_pt_PKG_CONFIG=$PKG_CONFIG
10380 # Extract the first word of "pkg-config", so it can be a program name with args.
10381 set dummy pkg-config; ac_word=$2
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10383 $as_echo_n "checking for $ac_word... " >&6; }
10384 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
10385 $as_echo_n "(cached) " >&6
10386 else
10387 case $ac_pt_PKG_CONFIG in
10388 [\\/]* | ?:[\\/]*)
10389 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10390 ;;
10391 *)
10392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10393 for as_dir in $PATH
10394 do
10395 IFS=$as_save_IFS
10396 test -z "$as_dir" && as_dir=.
10397 for ac_exec_ext in '' $ac_executable_extensions; do
10398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10399 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10401 break 2
10402 fi
10403 done
10404 done
10537 echo Build stays the same $rewritten_build
10538 else
10539 echo Rewriting build for builddeps into $rewritten_build
10540 fi
10541 eval rewritten_target=\${REWRITE_${target_var}}
10542 if test "x$rewritten_target" = x; then
10543 rewritten_target=${OPENJDK_TARGET_AUTOCONF_NAME}
10544 echo Target stays the same $rewritten_target
10545 else
10546 echo Rewriting target for builddeps into $rewritten_target
10547 fi
10548 rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'`
10549 rewritten_target_var=`echo ${rewritten_target} | tr '-' '_' | tr '.' '_'`
10550 fi
10551 for ac_prog in 7z unzip
10552 do
10553 # Extract the first word of "$ac_prog", so it can be a program name with args.
10554 set dummy $ac_prog; ac_word=$2
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10556 $as_echo_n "checking for $ac_word... " >&6; }
10557 if ${ac_cv_prog_BDEPS_UNZIP+:} false; then :
10558 $as_echo_n "(cached) " >&6
10559 else
10560 if test -n "$BDEPS_UNZIP"; then
10561 ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test.
10562 else
10563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10564 for as_dir in $PATH
10565 do
10566 IFS=$as_save_IFS
10567 test -z "$as_dir" && as_dir=.
10568 for ac_exec_ext in '' $ac_executable_extensions; do
10569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10570 ac_cv_prog_BDEPS_UNZIP="$ac_prog"
10571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10572 break 2
10573 fi
10574 done
10575 done
10576 IFS=$as_save_IFS
10577
10583 $as_echo "$BDEPS_UNZIP" >&6; }
10584 else
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10586 $as_echo "no" >&6; }
10587 fi
10588
10589
10590 test -n "$BDEPS_UNZIP" && break
10591 done
10592
10593 if test "x$BDEPS_UNZIP" = x7z; then
10594 BDEPS_UNZIP="7z x"
10595 fi
10596
10597 for ac_prog in wget lftp ftp
10598 do
10599 # Extract the first word of "$ac_prog", so it can be a program name with args.
10600 set dummy $ac_prog; ac_word=$2
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10602 $as_echo_n "checking for $ac_word... " >&6; }
10603 if ${ac_cv_prog_BDEPS_FTP+:} false; then :
10604 $as_echo_n "(cached) " >&6
10605 else
10606 if test -n "$BDEPS_FTP"; then
10607 ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test.
10608 else
10609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10610 for as_dir in $PATH
10611 do
10612 IFS=$as_save_IFS
10613 test -z "$as_dir" && as_dir=.
10614 for ac_exec_ext in '' $ac_executable_extensions; do
10615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10616 ac_cv_prog_BDEPS_FTP="$ac_prog"
10617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10618 break 2
10619 fi
10620 done
10621 done
10622 IFS=$as_save_IFS
10623
11849 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '`
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
11851 $as_echo "$BOOT_JDK_VERSION" >&6; }
11852 fi # end check jdk version
11853 fi # end check rt.jar
11854 fi # end check javac
11855 fi # end check java
11856 fi # end check boot jdk found
11857 fi
11858
11859
11860 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
11861
11862 if test "x$BOOT_JDK_FOUND" = xno; then
11863 # Now execute the test
11864
11865 # Extract the first word of "javac", so it can be a program name with args.
11866 set dummy javac; ac_word=$2
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11868 $as_echo_n "checking for $ac_word... " >&6; }
11869 if ${ac_cv_path_JAVAC_CHECK+:} false; then :
11870 $as_echo_n "(cached) " >&6
11871 else
11872 case $JAVAC_CHECK in
11873 [\\/]* | ?:[\\/]*)
11874 ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path.
11875 ;;
11876 *)
11877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11878 for as_dir in $PATH
11879 do
11880 IFS=$as_save_IFS
11881 test -z "$as_dir" && as_dir=.
11882 for ac_exec_ext in '' $ac_executable_extensions; do
11883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11884 ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext"
11885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11886 break 2
11887 fi
11888 done
11889 done
11890 IFS=$as_save_IFS
11891
11892 ;;
11893 esac
11894 fi
11895 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK
11896 if test -n "$JAVAC_CHECK"; then
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5
11898 $as_echo "$JAVAC_CHECK" >&6; }
11899 else
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11901 $as_echo "no" >&6; }
11902 fi
11903
11904
11905 # Extract the first word of "java", so it can be a program name with args.
11906 set dummy java; ac_word=$2
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11908 $as_echo_n "checking for $ac_word... " >&6; }
11909 if ${ac_cv_path_JAVA_CHECK+:} false; then :
11910 $as_echo_n "(cached) " >&6
11911 else
11912 case $JAVA_CHECK in
11913 [\\/]* | ?:[\\/]*)
11914 ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path.
11915 ;;
11916 *)
11917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11918 for as_dir in $PATH
11919 do
11920 IFS=$as_save_IFS
11921 test -z "$as_dir" && as_dir=.
11922 for ac_exec_ext in '' $ac_executable_extensions; do
11923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11924 ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext"
11925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11926 break 2
11927 fi
11928 done
11929 done
15948 EXE_OUT_OPTION='-o$(SPACE)'
15949 # When linking, how to specify the to be created dynamically linkable library.
15950 LD_OUT_OPTION='-o$(SPACE)'
15951 # When archiving, how to specify the to be create static archive for object files.
15952 AR_OUT_OPTION='rcs$(SPACE)'
15953
15954
15955
15956
15957
15958 # Locate the actual tools
15959
15960 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
15961
15962 # Store path to cygwin link.exe to help excluding it when searching for
15963 # VS linker. This must be done before changing the PATH when looking for VS.
15964 # Extract the first word of "link", so it can be a program name with args.
15965 set dummy link; ac_word=$2
15966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15967 $as_echo_n "checking for $ac_word... " >&6; }
15968 if ${ac_cv_path_CYGWIN_LINK+:} false; then :
15969 $as_echo_n "(cached) " >&6
15970 else
15971 case $CYGWIN_LINK in
15972 [\\/]* | ?:[\\/]*)
15973 ac_cv_path_CYGWIN_LINK="$CYGWIN_LINK" # Let the user override the test with a path.
15974 ;;
15975 *)
15976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15977 for as_dir in $PATH
15978 do
15979 IFS=$as_save_IFS
15980 test -z "$as_dir" && as_dir=.
15981 for ac_exec_ext in '' $ac_executable_extensions; do
15982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15983 ac_cv_path_CYGWIN_LINK="$as_dir/$ac_word$ac_exec_ext"
15984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15985 break 2
15986 fi
15987 done
15988 done
16395 # We have found a Visual Studio environment on disk, let's extract variables from the vsvars bat file.
16396
16397 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16398
16399 # First separate the path from the arguments. This will split at the first
16400 # space.
16401 complete="$VS_ENV_CMD"
16402 path="${complete%% *}"
16403 tmp="$complete EOL"
16404 arguments="${tmp#* }"
16405
16406 # Input might be given as Windows format, start by converting to
16407 # unix format.
16408 new_path=`$CYGPATH -u "$path"`
16409
16410 # Now try to locate executable using which
16411 new_path=`$WHICH "$new_path" 2> /dev/null`
16412 # bat and cmd files are not always considered executable in cygwin causing which
16413 # to not find them
16414 if test "x$new_path" = x \
16415 && test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16416 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16417 new_path=`$CYGPATH -u "$path"`
16418 fi
16419 if test "x$new_path" = x; then
16420 # Oops. Which didn't find the executable.
16421 # The splitting of arguments from the executable at a space might have been incorrect,
16422 # since paths with space are more likely in Windows. Give it another try with the whole
16423 # argument.
16424 path="$complete"
16425 arguments="EOL"
16426 new_path=`$CYGPATH -u "$path"`
16427 new_path=`$WHICH "$new_path" 2> /dev/null`
16428 # bat and cmd files are not always considered executable in cygwin causing which
16429 # to not find them
16430 if test "x$new_path" = x \
16431 && test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16432 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16433 new_path=`$CYGPATH -u "$path"`
16434 fi
16435 if test "x$new_path" = x; then
16436 # It's still not found. Now this is an unrecoverable error.
16437 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5
16438 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;}
16439 has_space=`$ECHO "$complete" | $GREP " "`
16440 if test "x$has_space" != x; then
16441 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16442 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16443 fi
16444 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5
16445 fi
16446 fi
16447
16448 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16449 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16450 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16451 # "foo.exe" is OK but "foo" is an error.
16937 # For example the binary i686-sun-solaris2.10-gcc
16938 # will cross compile for i686-sun-solaris2.10
16939 # If neither of build and host is not set, then build=host and the
16940 # default compiler found in the path will be used.
16941 # Setting only --host, does not seem to be really supported.
16942 # Please set both --build and --host if you want to cross compile.
16943
16944 if test "x$COMPILE_TYPE" = "xcross"; then
16945 # Now we to find a C/C++ compiler that can build executables for the build
16946 # platform. We can't use the AC_PROG_CC macro, since it can only be used
16947 # once. Also, we need to do this before adding a tools dir to the path,
16948 # otherwise we might pick up cross-compilers which don't use standard naming.
16949 # Otherwise, we'll set the BUILD_tools to the native tools, but that'll have
16950 # to wait until they are properly discovered.
16951 for ac_prog in cl cc gcc
16952 do
16953 # Extract the first word of "$ac_prog", so it can be a program name with args.
16954 set dummy $ac_prog; ac_word=$2
16955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16956 $as_echo_n "checking for $ac_word... " >&6; }
16957 if ${ac_cv_path_BUILD_CC+:} false; then :
16958 $as_echo_n "(cached) " >&6
16959 else
16960 case $BUILD_CC in
16961 [\\/]* | ?:[\\/]*)
16962 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path.
16963 ;;
16964 *)
16965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16966 for as_dir in $PATH
16967 do
16968 IFS=$as_save_IFS
16969 test -z "$as_dir" && as_dir=.
16970 for ac_exec_ext in '' $ac_executable_extensions; do
16971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16972 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext"
16973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16974 break 2
16975 fi
16976 done
16977 done
16995
16996
16997 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16998
16999 # First separate the path from the arguments. This will split at the first
17000 # space.
17001 complete="$BUILD_CC"
17002 path="${complete%% *}"
17003 tmp="$complete EOL"
17004 arguments="${tmp#* }"
17005
17006 # Input might be given as Windows format, start by converting to
17007 # unix format.
17008 new_path=`$CYGPATH -u "$path"`
17009
17010 # Now try to locate executable using which
17011 new_path=`$WHICH "$new_path" 2> /dev/null`
17012 # bat and cmd files are not always considered executable in cygwin causing which
17013 # to not find them
17014 if test "x$new_path" = x \
17015 && test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17016 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17017 new_path=`$CYGPATH -u "$path"`
17018 fi
17019 if test "x$new_path" = x; then
17020 # Oops. Which didn't find the executable.
17021 # The splitting of arguments from the executable at a space might have been incorrect,
17022 # since paths with space are more likely in Windows. Give it another try with the whole
17023 # argument.
17024 path="$complete"
17025 arguments="EOL"
17026 new_path=`$CYGPATH -u "$path"`
17027 new_path=`$WHICH "$new_path" 2> /dev/null`
17028 # bat and cmd files are not always considered executable in cygwin causing which
17029 # to not find them
17030 if test "x$new_path" = x \
17031 && test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17032 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17033 new_path=`$CYGPATH -u "$path"`
17034 fi
17035 if test "x$new_path" = x; then
17036 # It's still not found. Now this is an unrecoverable error.
17037 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5
17038 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;}
17039 has_space=`$ECHO "$complete" | $GREP " "`
17040 if test "x$has_space" != x; then
17041 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17042 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17043 fi
17044 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5
17045 fi
17046 fi
17047
17048 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17049 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17050 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17051 # "foo.exe" is OK but "foo" is an error.
17248
17249 # Now join together the path and the arguments once again
17250 if test "x$arguments" != xEOL; then
17251 new_complete="$new_path ${arguments% *}"
17252 else
17253 new_complete="$new_path"
17254 fi
17255
17256 if test "x$complete" != "x$new_complete"; then
17257 BUILD_CC="$new_complete"
17258 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CC to \"$new_complete\"" >&5
17259 $as_echo "$as_me: Rewriting BUILD_CC to \"$new_complete\"" >&6;}
17260 fi
17261
17262 for ac_prog in cl CC g++
17263 do
17264 # Extract the first word of "$ac_prog", so it can be a program name with args.
17265 set dummy $ac_prog; ac_word=$2
17266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17267 $as_echo_n "checking for $ac_word... " >&6; }
17268 if ${ac_cv_path_BUILD_CXX+:} false; then :
17269 $as_echo_n "(cached) " >&6
17270 else
17271 case $BUILD_CXX in
17272 [\\/]* | ?:[\\/]*)
17273 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path.
17274 ;;
17275 *)
17276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17277 for as_dir in $PATH
17278 do
17279 IFS=$as_save_IFS
17280 test -z "$as_dir" && as_dir=.
17281 for ac_exec_ext in '' $ac_executable_extensions; do
17282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17283 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext"
17284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17285 break 2
17286 fi
17287 done
17288 done
17306
17307
17308 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17309
17310 # First separate the path from the arguments. This will split at the first
17311 # space.
17312 complete="$BUILD_CXX"
17313 path="${complete%% *}"
17314 tmp="$complete EOL"
17315 arguments="${tmp#* }"
17316
17317 # Input might be given as Windows format, start by converting to
17318 # unix format.
17319 new_path=`$CYGPATH -u "$path"`
17320
17321 # Now try to locate executable using which
17322 new_path=`$WHICH "$new_path" 2> /dev/null`
17323 # bat and cmd files are not always considered executable in cygwin causing which
17324 # to not find them
17325 if test "x$new_path" = x \
17326 && test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17327 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17328 new_path=`$CYGPATH -u "$path"`
17329 fi
17330 if test "x$new_path" = x; then
17331 # Oops. Which didn't find the executable.
17332 # The splitting of arguments from the executable at a space might have been incorrect,
17333 # since paths with space are more likely in Windows. Give it another try with the whole
17334 # argument.
17335 path="$complete"
17336 arguments="EOL"
17337 new_path=`$CYGPATH -u "$path"`
17338 new_path=`$WHICH "$new_path" 2> /dev/null`
17339 # bat and cmd files are not always considered executable in cygwin causing which
17340 # to not find them
17341 if test "x$new_path" = x \
17342 && test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17343 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17344 new_path=`$CYGPATH -u "$path"`
17345 fi
17346 if test "x$new_path" = x; then
17347 # It's still not found. Now this is an unrecoverable error.
17348 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5
17349 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;}
17350 has_space=`$ECHO "$complete" | $GREP " "`
17351 if test "x$has_space" != x; then
17352 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17353 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17354 fi
17355 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5
17356 fi
17357 fi
17358
17359 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17360 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17361 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17362 # "foo.exe" is OK but "foo" is an error.
17557 fi
17558 fi
17559
17560 # Now join together the path and the arguments once again
17561 if test "x$arguments" != xEOL; then
17562 new_complete="$new_path ${arguments% *}"
17563 else
17564 new_complete="$new_path"
17565 fi
17566
17567 if test "x$complete" != "x$new_complete"; then
17568 BUILD_CXX="$new_complete"
17569 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CXX to \"$new_complete\"" >&5
17570 $as_echo "$as_me: Rewriting BUILD_CXX to \"$new_complete\"" >&6;}
17571 fi
17572
17573 # Extract the first word of "ld", so it can be a program name with args.
17574 set dummy ld; ac_word=$2
17575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17576 $as_echo_n "checking for $ac_word... " >&6; }
17577 if ${ac_cv_path_BUILD_LD+:} false; then :
17578 $as_echo_n "(cached) " >&6
17579 else
17580 case $BUILD_LD in
17581 [\\/]* | ?:[\\/]*)
17582 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path.
17583 ;;
17584 *)
17585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17586 for as_dir in $PATH
17587 do
17588 IFS=$as_save_IFS
17589 test -z "$as_dir" && as_dir=.
17590 for ac_exec_ext in '' $ac_executable_extensions; do
17591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17592 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext"
17593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17594 break 2
17595 fi
17596 done
17597 done
17612
17613
17614 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17615
17616 # First separate the path from the arguments. This will split at the first
17617 # space.
17618 complete="$BUILD_LD"
17619 path="${complete%% *}"
17620 tmp="$complete EOL"
17621 arguments="${tmp#* }"
17622
17623 # Input might be given as Windows format, start by converting to
17624 # unix format.
17625 new_path=`$CYGPATH -u "$path"`
17626
17627 # Now try to locate executable using which
17628 new_path=`$WHICH "$new_path" 2> /dev/null`
17629 # bat and cmd files are not always considered executable in cygwin causing which
17630 # to not find them
17631 if test "x$new_path" = x \
17632 && test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17633 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17634 new_path=`$CYGPATH -u "$path"`
17635 fi
17636 if test "x$new_path" = x; then
17637 # Oops. Which didn't find the executable.
17638 # The splitting of arguments from the executable at a space might have been incorrect,
17639 # since paths with space are more likely in Windows. Give it another try with the whole
17640 # argument.
17641 path="$complete"
17642 arguments="EOL"
17643 new_path=`$CYGPATH -u "$path"`
17644 new_path=`$WHICH "$new_path" 2> /dev/null`
17645 # bat and cmd files are not always considered executable in cygwin causing which
17646 # to not find them
17647 if test "x$new_path" = x \
17648 && test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17649 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17650 new_path=`$CYGPATH -u "$path"`
17651 fi
17652 if test "x$new_path" = x; then
17653 # It's still not found. Now this is an unrecoverable error.
17654 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5
17655 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;}
17656 has_space=`$ECHO "$complete" | $GREP " "`
17657 if test "x$has_space" != x; then
17658 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17659 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17660 fi
17661 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5
17662 fi
17663 fi
17664
17665 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17666 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17667 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17668 # "foo.exe" is OK but "foo" is an error.
18069 COMPILER_CHECK_LIST="cl gcc"
18070 else
18071 COMPILER_CHECK_LIST="cl cc gcc"
18072 fi
18073
18074
18075 COMPILER_NAME=C
18076
18077 CC=
18078 # If TOOLS_DIR is set, check for all compiler names in there first
18079 # before checking the rest of the PATH.
18080 if test -n "$TOOLS_DIR"; then
18081 PATH_save="$PATH"
18082 PATH="$TOOLS_DIR"
18083 for ac_prog in $COMPILER_CHECK_LIST
18084 do
18085 # Extract the first word of "$ac_prog", so it can be a program name with args.
18086 set dummy $ac_prog; ac_word=$2
18087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18088 $as_echo_n "checking for $ac_word... " >&6; }
18089 if ${ac_cv_path_TOOLS_DIR_CC+:} false; then :
18090 $as_echo_n "(cached) " >&6
18091 else
18092 case $TOOLS_DIR_CC in
18093 [\\/]* | ?:[\\/]*)
18094 ac_cv_path_TOOLS_DIR_CC="$TOOLS_DIR_CC" # Let the user override the test with a path.
18095 ;;
18096 *)
18097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18098 for as_dir in $PATH
18099 do
18100 IFS=$as_save_IFS
18101 test -z "$as_dir" && as_dir=.
18102 for ac_exec_ext in '' $ac_executable_extensions; do
18103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18104 ac_cv_path_TOOLS_DIR_CC="$as_dir/$ac_word$ac_exec_ext"
18105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18106 break 2
18107 fi
18108 done
18109 done
18121 $as_echo "no" >&6; }
18122 fi
18123
18124
18125 test -n "$TOOLS_DIR_CC" && break
18126 done
18127
18128 CC=$TOOLS_DIR_CC
18129 PATH="$PATH_save"
18130 fi
18131
18132 # AC_PATH_PROGS can't be run multiple times with the same variable,
18133 # so create a new name for this run.
18134 if test "x$CC" = x; then
18135 for ac_prog in $COMPILER_CHECK_LIST
18136 do
18137 # Extract the first word of "$ac_prog", so it can be a program name with args.
18138 set dummy $ac_prog; ac_word=$2
18139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18140 $as_echo_n "checking for $ac_word... " >&6; }
18141 if ${ac_cv_path_POTENTIAL_CC+:} false; then :
18142 $as_echo_n "(cached) " >&6
18143 else
18144 case $POTENTIAL_CC in
18145 [\\/]* | ?:[\\/]*)
18146 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path.
18147 ;;
18148 *)
18149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18150 for as_dir in $PATH
18151 do
18152 IFS=$as_save_IFS
18153 test -z "$as_dir" && as_dir=.
18154 for ac_exec_ext in '' $ac_executable_extensions; do
18155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18156 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext"
18157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18158 break 2
18159 fi
18160 done
18161 done
18210 fi
18211
18212 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18213
18214 # First separate the path from the arguments. This will split at the first
18215 # space.
18216 complete="$CC"
18217 path="${complete%% *}"
18218 tmp="$complete EOL"
18219 arguments="${tmp#* }"
18220
18221 # Input might be given as Windows format, start by converting to
18222 # unix format.
18223 new_path=`$CYGPATH -u "$path"`
18224
18225 # Now try to locate executable using which
18226 new_path=`$WHICH "$new_path" 2> /dev/null`
18227 # bat and cmd files are not always considered executable in cygwin causing which
18228 # to not find them
18229 if test "x$new_path" = x \
18230 && test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18231 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18232 new_path=`$CYGPATH -u "$path"`
18233 fi
18234 if test "x$new_path" = x; then
18235 # Oops. Which didn't find the executable.
18236 # The splitting of arguments from the executable at a space might have been incorrect,
18237 # since paths with space are more likely in Windows. Give it another try with the whole
18238 # argument.
18239 path="$complete"
18240 arguments="EOL"
18241 new_path=`$CYGPATH -u "$path"`
18242 new_path=`$WHICH "$new_path" 2> /dev/null`
18243 # bat and cmd files are not always considered executable in cygwin causing which
18244 # to not find them
18245 if test "x$new_path" = x \
18246 && test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18247 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18248 new_path=`$CYGPATH -u "$path"`
18249 fi
18250 if test "x$new_path" = x; then
18251 # It's still not found. Now this is an unrecoverable error.
18252 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5
18253 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;}
18254 has_space=`$ECHO "$complete" | $GREP " "`
18255 if test "x$has_space" != x; then
18256 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18257 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18258 fi
18259 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5
18260 fi
18261 fi
18262
18263 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18264 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18265 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18266 # "foo.exe" is OK but "foo" is an error.
18534 if test "x$COMPILER_BASENAME" = "xccache"; then
18535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5
18536 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; }
18537 # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache.
18538 # We want to control ccache invocation ourselves, so ignore this cc and try
18539 # searching again.
18540
18541 # Remove the path to the fake ccache cc from the PATH
18542 RETRY_COMPILER_SAVED_PATH="$PATH"
18543 COMPILER_DIRNAME=`$DIRNAME $CC`
18544 PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`"
18545
18546 # Try again looking for our compiler
18547 if test -n "$ac_tool_prefix"; then
18548 for ac_prog in $COMPILER_CHECK_LIST
18549 do
18550 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18551 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18553 $as_echo_n "checking for $ac_word... " >&6; }
18554 if ${ac_cv_prog_PROPER_COMPILER_CC+:} false; then :
18555 $as_echo_n "(cached) " >&6
18556 else
18557 if test -n "$PROPER_COMPILER_CC"; then
18558 ac_cv_prog_PROPER_COMPILER_CC="$PROPER_COMPILER_CC" # Let the user override the test.
18559 else
18560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18561 for as_dir in $PATH
18562 do
18563 IFS=$as_save_IFS
18564 test -z "$as_dir" && as_dir=.
18565 for ac_exec_ext in '' $ac_executable_extensions; do
18566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18567 ac_cv_prog_PROPER_COMPILER_CC="$ac_tool_prefix$ac_prog"
18568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18569 break 2
18570 fi
18571 done
18572 done
18573 IFS=$as_save_IFS
18574
18578 if test -n "$PROPER_COMPILER_CC"; then
18579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5
18580 $as_echo "$PROPER_COMPILER_CC" >&6; }
18581 else
18582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18583 $as_echo "no" >&6; }
18584 fi
18585
18586
18587 test -n "$PROPER_COMPILER_CC" && break
18588 done
18589 fi
18590 if test -z "$PROPER_COMPILER_CC"; then
18591 ac_ct_PROPER_COMPILER_CC=$PROPER_COMPILER_CC
18592 for ac_prog in $COMPILER_CHECK_LIST
18593 do
18594 # Extract the first word of "$ac_prog", so it can be a program name with args.
18595 set dummy $ac_prog; ac_word=$2
18596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18597 $as_echo_n "checking for $ac_word... " >&6; }
18598 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CC+:} false; then :
18599 $as_echo_n "(cached) " >&6
18600 else
18601 if test -n "$ac_ct_PROPER_COMPILER_CC"; then
18602 ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_ct_PROPER_COMPILER_CC" # Let the user override the test.
18603 else
18604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18605 for as_dir in $PATH
18606 do
18607 IFS=$as_save_IFS
18608 test -z "$as_dir" && as_dir=.
18609 for ac_exec_ext in '' $ac_executable_extensions; do
18610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18611 ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_prog"
18612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18613 break 2
18614 fi
18615 done
18616 done
18617 IFS=$as_save_IFS
18618
18646
18647
18648 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
18649
18650 # First separate the path from the arguments. This will split at the first
18651 # space.
18652 complete="$PROPER_COMPILER_CC"
18653 path="${complete%% *}"
18654 tmp="$complete EOL"
18655 arguments="${tmp#* }"
18656
18657 # Input might be given as Windows format, start by converting to
18658 # unix format.
18659 new_path=`$CYGPATH -u "$path"`
18660
18661 # Now try to locate executable using which
18662 new_path=`$WHICH "$new_path" 2> /dev/null`
18663 # bat and cmd files are not always considered executable in cygwin causing which
18664 # to not find them
18665 if test "x$new_path" = x \
18666 && test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18667 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18668 new_path=`$CYGPATH -u "$path"`
18669 fi
18670 if test "x$new_path" = x; then
18671 # Oops. Which didn't find the executable.
18672 # The splitting of arguments from the executable at a space might have been incorrect,
18673 # since paths with space are more likely in Windows. Give it another try with the whole
18674 # argument.
18675 path="$complete"
18676 arguments="EOL"
18677 new_path=`$CYGPATH -u "$path"`
18678 new_path=`$WHICH "$new_path" 2> /dev/null`
18679 # bat and cmd files are not always considered executable in cygwin causing which
18680 # to not find them
18681 if test "x$new_path" = x \
18682 && test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
18683 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
18684 new_path=`$CYGPATH -u "$path"`
18685 fi
18686 if test "x$new_path" = x; then
18687 # It's still not found. Now this is an unrecoverable error.
18688 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5
18689 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;}
18690 has_space=`$ECHO "$complete" | $GREP " "`
18691 if test "x$has_space" != x; then
18692 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
18693 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
18694 fi
18695 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5
18696 fi
18697 fi
18698
18699 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
18700 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
18701 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
18702 # "foo.exe" is OK but "foo" is an error.
19028 # This sets CC_VENDOR or CXX_VENDOR. (This comment is a grep marker)
19029 CC_VENDOR="$COMPILER_VENDOR"
19030
19031 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $COMPILER_VENDOR $COMPILER_NAME compiler version $COMPILER_VERSION (located at $COMPILER)" >&5
19032 $as_echo "$as_me: Using $COMPILER_VENDOR $COMPILER_NAME compiler version $COMPILER_VERSION (located at $COMPILER)" >&6;}
19033
19034
19035 # Now that we have resolved CC ourself, let autoconf have it's go at it
19036 ac_ext=c
19037 ac_cpp='$CPP $CPPFLAGS'
19038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19041 if test -n "$ac_tool_prefix"; then
19042 for ac_prog in $CC
19043 do
19044 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19045 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19047 $as_echo_n "checking for $ac_word... " >&6; }
19048 if ${ac_cv_prog_CC+:} false; then :
19049 $as_echo_n "(cached) " >&6
19050 else
19051 if test -n "$CC"; then
19052 ac_cv_prog_CC="$CC" # Let the user override the test.
19053 else
19054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19055 for as_dir in $PATH
19056 do
19057 IFS=$as_save_IFS
19058 test -z "$as_dir" && as_dir=.
19059 for ac_exec_ext in '' $ac_executable_extensions; do
19060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19061 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19063 break 2
19064 fi
19065 done
19066 done
19067 IFS=$as_save_IFS
19068
19072 if test -n "$CC"; then
19073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
19074 $as_echo "$CC" >&6; }
19075 else
19076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19077 $as_echo "no" >&6; }
19078 fi
19079
19080
19081 test -n "$CC" && break
19082 done
19083 fi
19084 if test -z "$CC"; then
19085 ac_ct_CC=$CC
19086 for ac_prog in $CC
19087 do
19088 # Extract the first word of "$ac_prog", so it can be a program name with args.
19089 set dummy $ac_prog; ac_word=$2
19090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19091 $as_echo_n "checking for $ac_word... " >&6; }
19092 if ${ac_cv_prog_ac_ct_CC+:} false; then :
19093 $as_echo_n "(cached) " >&6
19094 else
19095 if test -n "$ac_ct_CC"; then
19096 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19097 else
19098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19099 for as_dir in $PATH
19100 do
19101 IFS=$as_save_IFS
19102 test -z "$as_dir" && as_dir=.
19103 for ac_exec_ext in '' $ac_executable_extensions; do
19104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19105 ac_cv_prog_ac_ct_CC="$ac_prog"
19106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19107 break 2
19108 fi
19109 done
19110 done
19111 IFS=$as_save_IFS
19112
19125 test -n "$ac_ct_CC" && break
19126 done
19127
19128 if test "x$ac_ct_CC" = x; then
19129 CC=""
19130 else
19131 case $cross_compiling:$ac_tool_warned in
19132 yes:)
19133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19134 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19135 ac_tool_warned=yes ;;
19136 esac
19137 CC=$ac_ct_CC
19138 fi
19139 fi
19140
19141
19142 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19143 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19144 as_fn_error $? "no acceptable C compiler found in \$PATH
19145 See \`config.log' for more details" "$LINENO" 5; }
19146
19147 # Provide some information about the compiler.
19148 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
19149 set X $ac_compile
19150 ac_compiler=$2
19151 for ac_option in --version -v -V -qversion; do
19152 { { ac_try="$ac_compiler $ac_option >&5"
19153 case "(($ac_try" in
19154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19155 *) ac_try_echo=$ac_try;;
19156 esac
19157 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19158 $as_echo "$ac_try_echo"; } >&5
19159 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
19160 ac_status=$?
19161 if test -s conftest.err; then
19162 sed '10a\
19163 ... rest of stderr output deleted ...
19164 10q' conftest.err >conftest.er1
19165 cat conftest.er1 >&5
19240 # actually working.
19241 break;;
19242 * )
19243 break;;
19244 esac
19245 done
19246 test "$ac_cv_exeext" = no && ac_cv_exeext=
19247
19248 else
19249 ac_file=''
19250 fi
19251 if test -z "$ac_file"; then :
19252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19253 $as_echo "no" >&6; }
19254 $as_echo "$as_me: failed program was:" >&5
19255 sed 's/^/| /' conftest.$ac_ext >&5
19256
19257 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19258 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19259 as_fn_error 77 "C compiler cannot create executables
19260 See \`config.log' for more details" "$LINENO" 5; }
19261 else
19262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19263 $as_echo "yes" >&6; }
19264 fi
19265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
19266 $as_echo_n "checking for C compiler default output file name... " >&6; }
19267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
19268 $as_echo "$ac_file" >&6; }
19269 ac_exeext=$ac_cv_exeext
19270
19271 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
19272 ac_clean_files=$ac_clean_files_save
19273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
19274 $as_echo_n "checking for suffix of executables... " >&6; }
19275 if { { ac_try="$ac_link"
19276 case "(($ac_try" in
19277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19278 *) ac_try_echo=$ac_try;;
19279 esac
19280 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19283 ac_status=$?
19284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19285 test $ac_status = 0; }; then :
19286 # If both `conftest.exe' and `conftest' are `present' (well, observable)
19287 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
19288 # work properly (i.e., refer to `conftest.exe'), while it won't with
19289 # `rm'.
19290 for ac_file in conftest.exe conftest conftest.*; do
19291 test -f "$ac_file" || continue
19292 case $ac_file in
19293 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
19294 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
19295 break;;
19296 * ) break;;
19297 esac
19298 done
19299 else
19300 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19301 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19302 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
19303 See \`config.log' for more details" "$LINENO" 5; }
19304 fi
19305 rm -f conftest conftest$ac_cv_exeext
19306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
19307 $as_echo "$ac_cv_exeext" >&6; }
19308
19309 rm -f conftest.$ac_ext
19310 EXEEXT=$ac_cv_exeext
19311 ac_exeext=$EXEEXT
19312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19313 /* end confdefs.h. */
19314 #include <stdio.h>
19315 int
19316 main ()
19317 {
19318 FILE *f = fopen ("conftest.out", "w");
19319 return ferror (f) || fclose (f) != 0;
19320
19321 ;
19322 return 0;
19323 }
19342 if { ac_try='./conftest$ac_cv_exeext'
19343 { { case "(($ac_try" in
19344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19345 *) ac_try_echo=$ac_try;;
19346 esac
19347 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19348 $as_echo "$ac_try_echo"; } >&5
19349 (eval "$ac_try") 2>&5
19350 ac_status=$?
19351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19352 test $ac_status = 0; }; }; then
19353 cross_compiling=no
19354 else
19355 if test "$cross_compiling" = maybe; then
19356 cross_compiling=yes
19357 else
19358 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19359 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19360 as_fn_error $? "cannot run C compiled programs.
19361 If you meant to cross compile, use \`--host'.
19362 See \`config.log' for more details" "$LINENO" 5; }
19363 fi
19364 fi
19365 fi
19366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
19367 $as_echo "$cross_compiling" >&6; }
19368
19369 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
19370 ac_clean_files=$ac_clean_files_save
19371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
19372 $as_echo_n "checking for suffix of object files... " >&6; }
19373 if ${ac_cv_objext+:} false; then :
19374 $as_echo_n "(cached) " >&6
19375 else
19376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19377 /* end confdefs.h. */
19378
19379 int
19380 main ()
19381 {
19382
19383 ;
19384 return 0;
19385 }
19386 _ACEOF
19387 rm -f conftest.o conftest.obj
19388 if { { ac_try="$ac_compile"
19389 case "(($ac_try" in
19390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19391 *) ac_try_echo=$ac_try;;
19392 esac
19393 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19394 $as_echo "$ac_try_echo"; } >&5
19395 (eval "$ac_compile") 2>&5
19396 ac_status=$?
19397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19398 test $ac_status = 0; }; then :
19399 for ac_file in conftest.o conftest.obj conftest.*; do
19400 test -f "$ac_file" || continue;
19401 case $ac_file in
19402 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
19403 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
19404 break;;
19405 esac
19406 done
19407 else
19408 $as_echo "$as_me: failed program was:" >&5
19409 sed 's/^/| /' conftest.$ac_ext >&5
19410
19411 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19412 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19413 as_fn_error $? "cannot compute suffix of object files: cannot compile
19414 See \`config.log' for more details" "$LINENO" 5; }
19415 fi
19416 rm -f conftest.$ac_cv_objext conftest.$ac_ext
19417 fi
19418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
19419 $as_echo "$ac_cv_objext" >&6; }
19420 OBJEXT=$ac_cv_objext
19421 ac_objext=$OBJEXT
19422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
19423 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
19424 if ${ac_cv_c_compiler_gnu+:} false; then :
19425 $as_echo_n "(cached) " >&6
19426 else
19427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19428 /* end confdefs.h. */
19429
19430 int
19431 main ()
19432 {
19433 #ifndef __GNUC__
19434 choke me
19435 #endif
19436
19437 ;
19438 return 0;
19439 }
19440 _ACEOF
19441 if ac_fn_c_try_compile "$LINENO"; then :
19442 ac_compiler_gnu=yes
19443 else
19444 ac_compiler_gnu=no
19445 fi
19446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19447 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19448
19449 fi
19450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
19451 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
19452 if test $ac_compiler_gnu = yes; then
19453 GCC=yes
19454 else
19455 GCC=
19456 fi
19457 ac_test_CFLAGS=${CFLAGS+set}
19458 ac_save_CFLAGS=$CFLAGS
19459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
19460 $as_echo_n "checking whether $CC accepts -g... " >&6; }
19461 if ${ac_cv_prog_cc_g+:} false; then :
19462 $as_echo_n "(cached) " >&6
19463 else
19464 ac_save_c_werror_flag=$ac_c_werror_flag
19465 ac_c_werror_flag=yes
19466 ac_cv_prog_cc_g=no
19467 CFLAGS="-g"
19468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19469 /* end confdefs.h. */
19470
19471 int
19472 main ()
19473 {
19474
19475 ;
19476 return 0;
19477 }
19478 _ACEOF
19479 if ac_fn_c_try_compile "$LINENO"; then :
19480 ac_cv_prog_cc_g=yes
19481 else
19519 fi
19520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
19521 $as_echo "$ac_cv_prog_cc_g" >&6; }
19522 if test "$ac_test_CFLAGS" = set; then
19523 CFLAGS=$ac_save_CFLAGS
19524 elif test $ac_cv_prog_cc_g = yes; then
19525 if test "$GCC" = yes; then
19526 CFLAGS="-g -O2"
19527 else
19528 CFLAGS="-g"
19529 fi
19530 else
19531 if test "$GCC" = yes; then
19532 CFLAGS="-O2"
19533 else
19534 CFLAGS=
19535 fi
19536 fi
19537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
19538 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
19539 if ${ac_cv_prog_cc_c89+:} false; then :
19540 $as_echo_n "(cached) " >&6
19541 else
19542 ac_cv_prog_cc_c89=no
19543 ac_save_CC=$CC
19544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19545 /* end confdefs.h. */
19546 #include <stdarg.h>
19547 #include <stdio.h>
19548 #include <sys/types.h>
19549 #include <sys/stat.h>
19550 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19551 struct buf { int x; };
19552 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19553 static char *e (p, i)
19554 char **p;
19555 int i;
19556 {
19557 return p[i];
19558 }
19559 static char *f (char * (*g) (char **, int), char **p, ...)
19638 # Do not probe for CC on MacOSX.
19639 COMPILER_CHECK_LIST="cl g++"
19640 else
19641 COMPILER_CHECK_LIST="cl CC g++"
19642 fi
19643
19644 COMPILER_NAME=C++
19645
19646 CXX=
19647 # If TOOLS_DIR is set, check for all compiler names in there first
19648 # before checking the rest of the PATH.
19649 if test -n "$TOOLS_DIR"; then
19650 PATH_save="$PATH"
19651 PATH="$TOOLS_DIR"
19652 for ac_prog in $COMPILER_CHECK_LIST
19653 do
19654 # Extract the first word of "$ac_prog", so it can be a program name with args.
19655 set dummy $ac_prog; ac_word=$2
19656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19657 $as_echo_n "checking for $ac_word... " >&6; }
19658 if ${ac_cv_path_TOOLS_DIR_CXX+:} false; then :
19659 $as_echo_n "(cached) " >&6
19660 else
19661 case $TOOLS_DIR_CXX in
19662 [\\/]* | ?:[\\/]*)
19663 ac_cv_path_TOOLS_DIR_CXX="$TOOLS_DIR_CXX" # Let the user override the test with a path.
19664 ;;
19665 *)
19666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19667 for as_dir in $PATH
19668 do
19669 IFS=$as_save_IFS
19670 test -z "$as_dir" && as_dir=.
19671 for ac_exec_ext in '' $ac_executable_extensions; do
19672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19673 ac_cv_path_TOOLS_DIR_CXX="$as_dir/$ac_word$ac_exec_ext"
19674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19675 break 2
19676 fi
19677 done
19678 done
19690 $as_echo "no" >&6; }
19691 fi
19692
19693
19694 test -n "$TOOLS_DIR_CXX" && break
19695 done
19696
19697 CXX=$TOOLS_DIR_CXX
19698 PATH="$PATH_save"
19699 fi
19700
19701 # AC_PATH_PROGS can't be run multiple times with the same variable,
19702 # so create a new name for this run.
19703 if test "x$CXX" = x; then
19704 for ac_prog in $COMPILER_CHECK_LIST
19705 do
19706 # Extract the first word of "$ac_prog", so it can be a program name with args.
19707 set dummy $ac_prog; ac_word=$2
19708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19709 $as_echo_n "checking for $ac_word... " >&6; }
19710 if ${ac_cv_path_POTENTIAL_CXX+:} false; then :
19711 $as_echo_n "(cached) " >&6
19712 else
19713 case $POTENTIAL_CXX in
19714 [\\/]* | ?:[\\/]*)
19715 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path.
19716 ;;
19717 *)
19718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19719 for as_dir in $PATH
19720 do
19721 IFS=$as_save_IFS
19722 test -z "$as_dir" && as_dir=.
19723 for ac_exec_ext in '' $ac_executable_extensions; do
19724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19725 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext"
19726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19727 break 2
19728 fi
19729 done
19730 done
19779 fi
19780
19781 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19782
19783 # First separate the path from the arguments. This will split at the first
19784 # space.
19785 complete="$CXX"
19786 path="${complete%% *}"
19787 tmp="$complete EOL"
19788 arguments="${tmp#* }"
19789
19790 # Input might be given as Windows format, start by converting to
19791 # unix format.
19792 new_path=`$CYGPATH -u "$path"`
19793
19794 # Now try to locate executable using which
19795 new_path=`$WHICH "$new_path" 2> /dev/null`
19796 # bat and cmd files are not always considered executable in cygwin causing which
19797 # to not find them
19798 if test "x$new_path" = x \
19799 && test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19800 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19801 new_path=`$CYGPATH -u "$path"`
19802 fi
19803 if test "x$new_path" = x; then
19804 # Oops. Which didn't find the executable.
19805 # The splitting of arguments from the executable at a space might have been incorrect,
19806 # since paths with space are more likely in Windows. Give it another try with the whole
19807 # argument.
19808 path="$complete"
19809 arguments="EOL"
19810 new_path=`$CYGPATH -u "$path"`
19811 new_path=`$WHICH "$new_path" 2> /dev/null`
19812 # bat and cmd files are not always considered executable in cygwin causing which
19813 # to not find them
19814 if test "x$new_path" = x \
19815 && test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
19816 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
19817 new_path=`$CYGPATH -u "$path"`
19818 fi
19819 if test "x$new_path" = x; then
19820 # It's still not found. Now this is an unrecoverable error.
19821 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5
19822 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;}
19823 has_space=`$ECHO "$complete" | $GREP " "`
19824 if test "x$has_space" != x; then
19825 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
19826 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
19827 fi
19828 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5
19829 fi
19830 fi
19831
19832 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19833 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19834 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19835 # "foo.exe" is OK but "foo" is an error.
20103 if test "x$COMPILER_BASENAME" = "xccache"; then
20104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5
20105 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; }
20106 # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache.
20107 # We want to control ccache invocation ourselves, so ignore this cc and try
20108 # searching again.
20109
20110 # Remove the path to the fake ccache cc from the PATH
20111 RETRY_COMPILER_SAVED_PATH="$PATH"
20112 COMPILER_DIRNAME=`$DIRNAME $CXX`
20113 PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`"
20114
20115 # Try again looking for our compiler
20116 if test -n "$ac_tool_prefix"; then
20117 for ac_prog in $COMPILER_CHECK_LIST
20118 do
20119 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20120 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20122 $as_echo_n "checking for $ac_word... " >&6; }
20123 if ${ac_cv_prog_PROPER_COMPILER_CXX+:} false; then :
20124 $as_echo_n "(cached) " >&6
20125 else
20126 if test -n "$PROPER_COMPILER_CXX"; then
20127 ac_cv_prog_PROPER_COMPILER_CXX="$PROPER_COMPILER_CXX" # Let the user override the test.
20128 else
20129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20130 for as_dir in $PATH
20131 do
20132 IFS=$as_save_IFS
20133 test -z "$as_dir" && as_dir=.
20134 for ac_exec_ext in '' $ac_executable_extensions; do
20135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20136 ac_cv_prog_PROPER_COMPILER_CXX="$ac_tool_prefix$ac_prog"
20137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20138 break 2
20139 fi
20140 done
20141 done
20142 IFS=$as_save_IFS
20143
20147 if test -n "$PROPER_COMPILER_CXX"; then
20148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5
20149 $as_echo "$PROPER_COMPILER_CXX" >&6; }
20150 else
20151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20152 $as_echo "no" >&6; }
20153 fi
20154
20155
20156 test -n "$PROPER_COMPILER_CXX" && break
20157 done
20158 fi
20159 if test -z "$PROPER_COMPILER_CXX"; then
20160 ac_ct_PROPER_COMPILER_CXX=$PROPER_COMPILER_CXX
20161 for ac_prog in $COMPILER_CHECK_LIST
20162 do
20163 # Extract the first word of "$ac_prog", so it can be a program name with args.
20164 set dummy $ac_prog; ac_word=$2
20165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20166 $as_echo_n "checking for $ac_word... " >&6; }
20167 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CXX+:} false; then :
20168 $as_echo_n "(cached) " >&6
20169 else
20170 if test -n "$ac_ct_PROPER_COMPILER_CXX"; then
20171 ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_ct_PROPER_COMPILER_CXX" # Let the user override the test.
20172 else
20173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20174 for as_dir in $PATH
20175 do
20176 IFS=$as_save_IFS
20177 test -z "$as_dir" && as_dir=.
20178 for ac_exec_ext in '' $ac_executable_extensions; do
20179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20180 ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_prog"
20181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20182 break 2
20183 fi
20184 done
20185 done
20186 IFS=$as_save_IFS
20187
20215
20216
20217 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20218
20219 # First separate the path from the arguments. This will split at the first
20220 # space.
20221 complete="$PROPER_COMPILER_CXX"
20222 path="${complete%% *}"
20223 tmp="$complete EOL"
20224 arguments="${tmp#* }"
20225
20226 # Input might be given as Windows format, start by converting to
20227 # unix format.
20228 new_path=`$CYGPATH -u "$path"`
20229
20230 # Now try to locate executable using which
20231 new_path=`$WHICH "$new_path" 2> /dev/null`
20232 # bat and cmd files are not always considered executable in cygwin causing which
20233 # to not find them
20234 if test "x$new_path" = x \
20235 && test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20236 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20237 new_path=`$CYGPATH -u "$path"`
20238 fi
20239 if test "x$new_path" = x; then
20240 # Oops. Which didn't find the executable.
20241 # The splitting of arguments from the executable at a space might have been incorrect,
20242 # since paths with space are more likely in Windows. Give it another try with the whole
20243 # argument.
20244 path="$complete"
20245 arguments="EOL"
20246 new_path=`$CYGPATH -u "$path"`
20247 new_path=`$WHICH "$new_path" 2> /dev/null`
20248 # bat and cmd files are not always considered executable in cygwin causing which
20249 # to not find them
20250 if test "x$new_path" = x \
20251 && test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
20252 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
20253 new_path=`$CYGPATH -u "$path"`
20254 fi
20255 if test "x$new_path" = x; then
20256 # It's still not found. Now this is an unrecoverable error.
20257 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5
20258 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;}
20259 has_space=`$ECHO "$complete" | $GREP " "`
20260 if test "x$has_space" != x; then
20261 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
20262 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
20263 fi
20264 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5
20265 fi
20266 fi
20267
20268 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20269 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20270 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20271 # "foo.exe" is OK but "foo" is an error.
20601 $as_echo "$as_me: Using $COMPILER_VENDOR $COMPILER_NAME compiler version $COMPILER_VERSION (located at $COMPILER)" >&6;}
20602
20603
20604 # Now that we have resolved CXX ourself, let autoconf have it's go at it
20605 ac_ext=cpp
20606 ac_cpp='$CXXCPP $CPPFLAGS'
20607 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20608 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20609 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20610 if test -z "$CXX"; then
20611 if test -n "$CCC"; then
20612 CXX=$CCC
20613 else
20614 if test -n "$ac_tool_prefix"; then
20615 for ac_prog in $CXX
20616 do
20617 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20618 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20620 $as_echo_n "checking for $ac_word... " >&6; }
20621 if ${ac_cv_prog_CXX+:} false; then :
20622 $as_echo_n "(cached) " >&6
20623 else
20624 if test -n "$CXX"; then
20625 ac_cv_prog_CXX="$CXX" # Let the user override the test.
20626 else
20627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20628 for as_dir in $PATH
20629 do
20630 IFS=$as_save_IFS
20631 test -z "$as_dir" && as_dir=.
20632 for ac_exec_ext in '' $ac_executable_extensions; do
20633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20634 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
20635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20636 break 2
20637 fi
20638 done
20639 done
20640 IFS=$as_save_IFS
20641
20645 if test -n "$CXX"; then
20646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
20647 $as_echo "$CXX" >&6; }
20648 else
20649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20650 $as_echo "no" >&6; }
20651 fi
20652
20653
20654 test -n "$CXX" && break
20655 done
20656 fi
20657 if test -z "$CXX"; then
20658 ac_ct_CXX=$CXX
20659 for ac_prog in $CXX
20660 do
20661 # Extract the first word of "$ac_prog", so it can be a program name with args.
20662 set dummy $ac_prog; ac_word=$2
20663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20664 $as_echo_n "checking for $ac_word... " >&6; }
20665 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
20666 $as_echo_n "(cached) " >&6
20667 else
20668 if test -n "$ac_ct_CXX"; then
20669 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
20670 else
20671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20672 for as_dir in $PATH
20673 do
20674 IFS=$as_save_IFS
20675 test -z "$as_dir" && as_dir=.
20676 for ac_exec_ext in '' $ac_executable_extensions; do
20677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20678 ac_cv_prog_ac_ct_CXX="$ac_prog"
20679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20680 break 2
20681 fi
20682 done
20683 done
20684 IFS=$as_save_IFS
20685
20723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20724 *) ac_try_echo=$ac_try;;
20725 esac
20726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
20727 $as_echo "$ac_try_echo"; } >&5
20728 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
20729 ac_status=$?
20730 if test -s conftest.err; then
20731 sed '10a\
20732 ... rest of stderr output deleted ...
20733 10q' conftest.err >conftest.er1
20734 cat conftest.er1 >&5
20735 fi
20736 rm -f conftest.er1 conftest.err
20737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20738 test $ac_status = 0; }
20739 done
20740
20741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
20742 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
20743 if ${ac_cv_cxx_compiler_gnu+:} false; then :
20744 $as_echo_n "(cached) " >&6
20745 else
20746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20747 /* end confdefs.h. */
20748
20749 int
20750 main ()
20751 {
20752 #ifndef __GNUC__
20753 choke me
20754 #endif
20755
20756 ;
20757 return 0;
20758 }
20759 _ACEOF
20760 if ac_fn_cxx_try_compile "$LINENO"; then :
20761 ac_compiler_gnu=yes
20762 else
20763 ac_compiler_gnu=no
20764 fi
20765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20766 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
20767
20768 fi
20769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
20770 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
20771 if test $ac_compiler_gnu = yes; then
20772 GXX=yes
20773 else
20774 GXX=
20775 fi
20776 ac_test_CXXFLAGS=${CXXFLAGS+set}
20777 ac_save_CXXFLAGS=$CXXFLAGS
20778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
20779 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
20780 if ${ac_cv_prog_cxx_g+:} false; then :
20781 $as_echo_n "(cached) " >&6
20782 else
20783 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
20784 ac_cxx_werror_flag=yes
20785 ac_cv_prog_cxx_g=no
20786 CXXFLAGS="-g"
20787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20788 /* end confdefs.h. */
20789
20790 int
20791 main ()
20792 {
20793
20794 ;
20795 return 0;
20796 }
20797 _ACEOF
20798 if ac_fn_cxx_try_compile "$LINENO"; then :
20799 ac_cv_prog_cxx_g=yes
20800 else
20858 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20859 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20860 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20861
20862
20863 ### Locate other tools
20864
20865 if test "x$OPENJDK_TARGET_OS" = xmacosx; then
20866 ac_ext=m
20867 ac_cpp='$OBJCPP $CPPFLAGS'
20868 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20869 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20870 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
20871 if test -n "$ac_tool_prefix"; then
20872 for ac_prog in gcc objcc objc cc CC
20873 do
20874 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20875 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20877 $as_echo_n "checking for $ac_word... " >&6; }
20878 if ${ac_cv_prog_OBJC+:} false; then :
20879 $as_echo_n "(cached) " >&6
20880 else
20881 if test -n "$OBJC"; then
20882 ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
20883 else
20884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20885 for as_dir in $PATH
20886 do
20887 IFS=$as_save_IFS
20888 test -z "$as_dir" && as_dir=.
20889 for ac_exec_ext in '' $ac_executable_extensions; do
20890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20891 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
20892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20893 break 2
20894 fi
20895 done
20896 done
20897 IFS=$as_save_IFS
20898
20902 if test -n "$OBJC"; then
20903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5
20904 $as_echo "$OBJC" >&6; }
20905 else
20906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20907 $as_echo "no" >&6; }
20908 fi
20909
20910
20911 test -n "$OBJC" && break
20912 done
20913 fi
20914 if test -z "$OBJC"; then
20915 ac_ct_OBJC=$OBJC
20916 for ac_prog in gcc objcc objc cc CC
20917 do
20918 # Extract the first word of "$ac_prog", so it can be a program name with args.
20919 set dummy $ac_prog; ac_word=$2
20920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20921 $as_echo_n "checking for $ac_word... " >&6; }
20922 if ${ac_cv_prog_ac_ct_OBJC+:} false; then :
20923 $as_echo_n "(cached) " >&6
20924 else
20925 if test -n "$ac_ct_OBJC"; then
20926 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
20927 else
20928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20929 for as_dir in $PATH
20930 do
20931 IFS=$as_save_IFS
20932 test -z "$as_dir" && as_dir=.
20933 for ac_exec_ext in '' $ac_executable_extensions; do
20934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20935 ac_cv_prog_ac_ct_OBJC="$ac_prog"
20936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20937 break 2
20938 fi
20939 done
20940 done
20941 IFS=$as_save_IFS
20942
20978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20979 *) ac_try_echo=$ac_try;;
20980 esac
20981 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
20982 $as_echo "$ac_try_echo"; } >&5
20983 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
20984 ac_status=$?
20985 if test -s conftest.err; then
20986 sed '10a\
20987 ... rest of stderr output deleted ...
20988 10q' conftest.err >conftest.er1
20989 cat conftest.er1 >&5
20990 fi
20991 rm -f conftest.er1 conftest.err
20992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20993 test $ac_status = 0; }
20994 done
20995
20996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C compiler" >&5
20997 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }
20998 if ${ac_cv_objc_compiler_gnu+:} false; then :
20999 $as_echo_n "(cached) " >&6
21000 else
21001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21002 /* end confdefs.h. */
21003
21004 int
21005 main ()
21006 {
21007 #ifndef __GNUC__
21008 choke me
21009 #endif
21010
21011 ;
21012 return 0;
21013 }
21014 _ACEOF
21015 if ac_fn_objc_try_compile "$LINENO"; then :
21016 ac_compiler_gnu=yes
21017 else
21018 ac_compiler_gnu=no
21019 fi
21020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21021 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
21022
21023 fi
21024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5
21025 $as_echo "$ac_cv_objc_compiler_gnu" >&6; }
21026 if test $ac_compiler_gnu = yes; then
21027 GOBJC=yes
21028 else
21029 GOBJC=
21030 fi
21031 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
21032 ac_save_OBJCFLAGS=$OBJCFLAGS
21033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5
21034 $as_echo_n "checking whether $OBJC accepts -g... " >&6; }
21035 if ${ac_cv_prog_objc_g+:} false; then :
21036 $as_echo_n "(cached) " >&6
21037 else
21038 ac_save_objc_werror_flag=$ac_objc_werror_flag
21039 ac_objc_werror_flag=yes
21040 ac_cv_prog_objc_g=no
21041 OBJCFLAGS="-g"
21042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21043 /* end confdefs.h. */
21044
21045 int
21046 main ()
21047 {
21048
21049 ;
21050 return 0;
21051 }
21052 _ACEOF
21053 if ac_fn_objc_try_compile "$LINENO"; then :
21054 ac_cv_prog_objc_g=yes
21055 else
21116
21117
21118 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21119
21120 # First separate the path from the arguments. This will split at the first
21121 # space.
21122 complete="$OBJC"
21123 path="${complete%% *}"
21124 tmp="$complete EOL"
21125 arguments="${tmp#* }"
21126
21127 # Input might be given as Windows format, start by converting to
21128 # unix format.
21129 new_path=`$CYGPATH -u "$path"`
21130
21131 # Now try to locate executable using which
21132 new_path=`$WHICH "$new_path" 2> /dev/null`
21133 # bat and cmd files are not always considered executable in cygwin causing which
21134 # to not find them
21135 if test "x$new_path" = x \
21136 && test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
21137 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
21138 new_path=`$CYGPATH -u "$path"`
21139 fi
21140 if test "x$new_path" = x; then
21141 # Oops. Which didn't find the executable.
21142 # The splitting of arguments from the executable at a space might have been incorrect,
21143 # since paths with space are more likely in Windows. Give it another try with the whole
21144 # argument.
21145 path="$complete"
21146 arguments="EOL"
21147 new_path=`$CYGPATH -u "$path"`
21148 new_path=`$WHICH "$new_path" 2> /dev/null`
21149 # bat and cmd files are not always considered executable in cygwin causing which
21150 # to not find them
21151 if test "x$new_path" = x \
21152 && test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
21153 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
21154 new_path=`$CYGPATH -u "$path"`
21155 fi
21156 if test "x$new_path" = x; then
21157 # It's still not found. Now this is an unrecoverable error.
21158 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5
21159 $as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;}
21160 has_space=`$ECHO "$complete" | $GREP " "`
21161 if test "x$has_space" != x; then
21162 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
21163 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
21164 fi
21165 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5
21166 fi
21167 fi
21168
21169 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21170 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21171 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21172 # "foo.exe" is OK but "foo" is an error.
21391 OBJCFLAGS="$ORG_OBJCFLAGS"
21392
21393 LD="$CC"
21394 LDEXE="$CC"
21395 LDCXX="$CXX"
21396 LDEXECXX="$CXX"
21397
21398 # LDEXE is the linker to use, when creating executables.
21399
21400 # Linking C++ libraries.
21401
21402 # Linking C++ executables.
21403
21404
21405 if test "x$OPENJDK_TARGET_OS" != xwindows; then
21406 if test -n "$ac_tool_prefix"; then
21407 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
21408 set dummy ${ac_tool_prefix}ar; ac_word=$2
21409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21410 $as_echo_n "checking for $ac_word... " >&6; }
21411 if ${ac_cv_prog_AR+:} false; then :
21412 $as_echo_n "(cached) " >&6
21413 else
21414 if test -n "$AR"; then
21415 ac_cv_prog_AR="$AR" # Let the user override the test.
21416 else
21417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21418 for as_dir in $PATH
21419 do
21420 IFS=$as_save_IFS
21421 test -z "$as_dir" && as_dir=.
21422 for ac_exec_ext in '' $ac_executable_extensions; do
21423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21424 ac_cv_prog_AR="${ac_tool_prefix}ar"
21425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21426 break 2
21427 fi
21428 done
21429 done
21430 IFS=$as_save_IFS
21431
21432 fi
21433 fi
21434 AR=$ac_cv_prog_AR
21435 if test -n "$AR"; then
21436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
21437 $as_echo "$AR" >&6; }
21438 else
21439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21440 $as_echo "no" >&6; }
21441 fi
21442
21443
21444 fi
21445 if test -z "$ac_cv_prog_AR"; then
21446 ac_ct_AR=$AR
21447 # Extract the first word of "ar", so it can be a program name with args.
21448 set dummy ar; ac_word=$2
21449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21450 $as_echo_n "checking for $ac_word... " >&6; }
21451 if ${ac_cv_prog_ac_ct_AR+:} false; then :
21452 $as_echo_n "(cached) " >&6
21453 else
21454 if test -n "$ac_ct_AR"; then
21455 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
21456 else
21457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21458 for as_dir in $PATH
21459 do
21460 IFS=$as_save_IFS
21461 test -z "$as_dir" && as_dir=.
21462 for ac_exec_ext in '' $ac_executable_extensions; do
21463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21464 ac_cv_prog_ac_ct_AR="ar"
21465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21466 break 2
21467 fi
21468 done
21469 done
21470 IFS=$as_save_IFS
21471
21497
21498
21499 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21500
21501 # First separate the path from the arguments. This will split at the first
21502 # space.
21503 complete="$AR"
21504 path="${complete%% *}"
21505 tmp="$complete EOL"
21506 arguments="${tmp#* }"
21507
21508 # Input might be given as Windows format, start by converting to
21509 # unix format.
21510 new_path=`$CYGPATH -u "$path"`
21511
21512 # Now try to locate executable using which
21513 new_path=`$WHICH "$new_path" 2> /dev/null`
21514 # bat and cmd files are not always considered executable in cygwin causing which
21515 # to not find them
21516 if test "x$new_path" = x \
21517 && test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
21518 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
21519 new_path=`$CYGPATH -u "$path"`
21520 fi
21521 if test "x$new_path" = x; then
21522 # Oops. Which didn't find the executable.
21523 # The splitting of arguments from the executable at a space might have been incorrect,
21524 # since paths with space are more likely in Windows. Give it another try with the whole
21525 # argument.
21526 path="$complete"
21527 arguments="EOL"
21528 new_path=`$CYGPATH -u "$path"`
21529 new_path=`$WHICH "$new_path" 2> /dev/null`
21530 # bat and cmd files are not always considered executable in cygwin causing which
21531 # to not find them
21532 if test "x$new_path" = x \
21533 && test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
21534 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
21535 new_path=`$CYGPATH -u "$path"`
21536 fi
21537 if test "x$new_path" = x; then
21538 # It's still not found. Now this is an unrecoverable error.
21539 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5
21540 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;}
21541 has_space=`$ECHO "$complete" | $GREP " "`
21542 if test "x$has_space" != x; then
21543 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
21544 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
21545 fi
21546 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5
21547 fi
21548 fi
21549
21550 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21551 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21552 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21553 # "foo.exe" is OK but "foo" is an error.
21773 HOTSPOT_CXX="$CXX"
21774 HOTSPOT_LD="$LD"
21775
21776
21777
21778 COMPILER_NAME=gcc
21779 COMPILER_TYPE=CC
21780 if test "x$OPENJDK_TARGET_OS" = xwindows; then :
21781
21782 # For now, assume that we are always compiling using cl.exe.
21783 CC_OUT_OPTION=-Fo
21784 EXE_OUT_OPTION=-out:
21785 LD_OUT_OPTION=-out:
21786 AR_OUT_OPTION=-out:
21787 # On Windows, reject /usr/bin/link (as determined in CYGWIN_LINK), which is a cygwin
21788 # program for something completely different.
21789 # Extract the first word of "link", so it can be a program name with args.
21790 set dummy link; ac_word=$2
21791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21792 $as_echo_n "checking for $ac_word... " >&6; }
21793 if ${ac_cv_prog_WINLD+:} false; then :
21794 $as_echo_n "(cached) " >&6
21795 else
21796 if test -n "$WINLD"; then
21797 ac_cv_prog_WINLD="$WINLD" # Let the user override the test.
21798 else
21799 ac_prog_rejected=no
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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21807 if test "$as_dir/$ac_word$ac_exec_ext" = "$CYGWIN_LINK"; then
21808 ac_prog_rejected=yes
21809 continue
21810 fi
21811 ac_cv_prog_WINLD="link"
21812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21813 break 2
21844 # the full path to the link.exe program.
21845
21846 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21847
21848 # First separate the path from the arguments. This will split at the first
21849 # space.
21850 complete="$WINLD"
21851 path="${complete%% *}"
21852 tmp="$complete EOL"
21853 arguments="${tmp#* }"
21854
21855 # Input might be given as Windows format, start by converting to
21856 # unix format.
21857 new_path=`$CYGPATH -u "$path"`
21858
21859 # Now try to locate executable using which
21860 new_path=`$WHICH "$new_path" 2> /dev/null`
21861 # bat and cmd files are not always considered executable in cygwin causing which
21862 # to not find them
21863 if test "x$new_path" = x \
21864 && test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
21865 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
21866 new_path=`$CYGPATH -u "$path"`
21867 fi
21868 if test "x$new_path" = x; then
21869 # Oops. Which didn't find the executable.
21870 # The splitting of arguments from the executable at a space might have been incorrect,
21871 # since paths with space are more likely in Windows. Give it another try with the whole
21872 # argument.
21873 path="$complete"
21874 arguments="EOL"
21875 new_path=`$CYGPATH -u "$path"`
21876 new_path=`$WHICH "$new_path" 2> /dev/null`
21877 # bat and cmd files are not always considered executable in cygwin causing which
21878 # to not find them
21879 if test "x$new_path" = x \
21880 && test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
21881 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
21882 new_path=`$CYGPATH -u "$path"`
21883 fi
21884 if test "x$new_path" = x; then
21885 # It's still not found. Now this is an unrecoverable error.
21886 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of WINLD, which resolves as \"$complete\", is not found." >&5
21887 $as_echo "$as_me: The path of WINLD, which resolves as \"$complete\", is not found." >&6;}
21888 has_space=`$ECHO "$complete" | $GREP " "`
21889 if test "x$has_space" != x; then
21890 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
21891 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
21892 fi
21893 as_fn_error $? "Cannot locate the the path of WINLD" "$LINENO" 5
21894 fi
21895 fi
21896
21897 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21898 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21899 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21900 # "foo.exe" is OK but "foo" is an error.
22112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the found link.exe is actually the Visual Studio linker" >&5
22113 $as_echo_n "checking if the found link.exe is actually the Visual Studio linker... " >&6; }
22114 "$WINLD" --version > /dev/null
22115 if test $? -eq 0 ; then
22116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22117 $as_echo "no" >&6; }
22118 as_fn_error $? "This is the Cygwin link tool. Please check your PATH and rerun configure." "$LINENO" 5
22119 else
22120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22121 $as_echo "yes" >&6; }
22122 fi
22123 LD="$WINLD"
22124 LDEXE="$WINLD"
22125 LDCXX="$WINLD"
22126 LDEXECXX="$WINLD"
22127
22128 # Extract the first word of "mt", so it can be a program name with args.
22129 set dummy mt; ac_word=$2
22130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22131 $as_echo_n "checking for $ac_word... " >&6; }
22132 if ${ac_cv_prog_MT+:} false; then :
22133 $as_echo_n "(cached) " >&6
22134 else
22135 if test -n "$MT"; then
22136 ac_cv_prog_MT="$MT" # Let the user override the test.
22137 else
22138 ac_prog_rejected=no
22139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22140 for as_dir in $PATH
22141 do
22142 IFS=$as_save_IFS
22143 test -z "$as_dir" && as_dir=.
22144 for ac_exec_ext in '' $ac_executable_extensions; do
22145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22146 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/mt"; then
22147 ac_prog_rejected=yes
22148 continue
22149 fi
22150 ac_cv_prog_MT="mt"
22151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22152 break 2
22181
22182
22183 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22184
22185 # First separate the path from the arguments. This will split at the first
22186 # space.
22187 complete="$MT"
22188 path="${complete%% *}"
22189 tmp="$complete EOL"
22190 arguments="${tmp#* }"
22191
22192 # Input might be given as Windows format, start by converting to
22193 # unix format.
22194 new_path=`$CYGPATH -u "$path"`
22195
22196 # Now try to locate executable using which
22197 new_path=`$WHICH "$new_path" 2> /dev/null`
22198 # bat and cmd files are not always considered executable in cygwin causing which
22199 # to not find them
22200 if test "x$new_path" = x \
22201 && test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
22202 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
22203 new_path=`$CYGPATH -u "$path"`
22204 fi
22205 if test "x$new_path" = x; then
22206 # Oops. Which didn't find the executable.
22207 # The splitting of arguments from the executable at a space might have been incorrect,
22208 # since paths with space are more likely in Windows. Give it another try with the whole
22209 # argument.
22210 path="$complete"
22211 arguments="EOL"
22212 new_path=`$CYGPATH -u "$path"`
22213 new_path=`$WHICH "$new_path" 2> /dev/null`
22214 # bat and cmd files are not always considered executable in cygwin causing which
22215 # to not find them
22216 if test "x$new_path" = x \
22217 && test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
22218 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
22219 new_path=`$CYGPATH -u "$path"`
22220 fi
22221 if test "x$new_path" = x; then
22222 # It's still not found. Now this is an unrecoverable error.
22223 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5
22224 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;}
22225 has_space=`$ECHO "$complete" | $GREP " "`
22226 if test "x$has_space" != x; then
22227 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
22228 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
22229 fi
22230 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5
22231 fi
22232 fi
22233
22234 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22235 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22236 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22237 # "foo.exe" is OK but "foo" is an error.
22433 fi
22434
22435 # Now join together the path and the arguments once again
22436 if test "x$arguments" != xEOL; then
22437 new_complete="$new_path ${arguments% *}"
22438 else
22439 new_complete="$new_path"
22440 fi
22441
22442 if test "x$complete" != "x$new_complete"; then
22443 MT="$new_complete"
22444 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MT to \"$new_complete\"" >&5
22445 $as_echo "$as_me: Rewriting MT to \"$new_complete\"" >&6;}
22446 fi
22447
22448 # The resource compiler
22449 # Extract the first word of "rc", so it can be a program name with args.
22450 set dummy rc; ac_word=$2
22451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22452 $as_echo_n "checking for $ac_word... " >&6; }
22453 if ${ac_cv_prog_RC+:} false; then :
22454 $as_echo_n "(cached) " >&6
22455 else
22456 if test -n "$RC"; then
22457 ac_cv_prog_RC="$RC" # Let the user override the test.
22458 else
22459 ac_prog_rejected=no
22460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22461 for as_dir in $PATH
22462 do
22463 IFS=$as_save_IFS
22464 test -z "$as_dir" && as_dir=.
22465 for ac_exec_ext in '' $ac_executable_extensions; do
22466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22467 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/rc"; then
22468 ac_prog_rejected=yes
22469 continue
22470 fi
22471 ac_cv_prog_RC="rc"
22472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22473 break 2
22502
22503
22504 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22505
22506 # First separate the path from the arguments. This will split at the first
22507 # space.
22508 complete="$RC"
22509 path="${complete%% *}"
22510 tmp="$complete EOL"
22511 arguments="${tmp#* }"
22512
22513 # Input might be given as Windows format, start by converting to
22514 # unix format.
22515 new_path=`$CYGPATH -u "$path"`
22516
22517 # Now try to locate executable using which
22518 new_path=`$WHICH "$new_path" 2> /dev/null`
22519 # bat and cmd files are not always considered executable in cygwin causing which
22520 # to not find them
22521 if test "x$new_path" = x \
22522 && test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
22523 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
22524 new_path=`$CYGPATH -u "$path"`
22525 fi
22526 if test "x$new_path" = x; then
22527 # Oops. Which didn't find the executable.
22528 # The splitting of arguments from the executable at a space might have been incorrect,
22529 # since paths with space are more likely in Windows. Give it another try with the whole
22530 # argument.
22531 path="$complete"
22532 arguments="EOL"
22533 new_path=`$CYGPATH -u "$path"`
22534 new_path=`$WHICH "$new_path" 2> /dev/null`
22535 # bat and cmd files are not always considered executable in cygwin causing which
22536 # to not find them
22537 if test "x$new_path" = x \
22538 && test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
22539 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
22540 new_path=`$CYGPATH -u "$path"`
22541 fi
22542 if test "x$new_path" = x; then
22543 # It's still not found. Now this is an unrecoverable error.
22544 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5
22545 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;}
22546 has_space=`$ECHO "$complete" | $GREP " "`
22547 if test "x$has_space" != x; then
22548 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
22549 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
22550 fi
22551 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5
22552 fi
22553 fi
22554
22555 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22556 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22557 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22558 # "foo.exe" is OK but "foo" is an error.
22824 fi
22825 JDK_UPDATE_VERSION_NOTNULL=$JDK_UPDATE_VERSION
22826 if test "x$JDK_UPDATE_VERSION" = x; then :
22827
22828 JDK_UPDATE_VERSION_NOTNULL=0
22829
22830 fi
22831 RC_FLAGS="$RC_FLAGS -d \"JDK_BUILD_ID=$FULL_VERSION\""
22832 RC_FLAGS="$RC_FLAGS -d \"JDK_COMPANY=$COMPANY_NAME\""
22833 RC_FLAGS="$RC_FLAGS -d \"JDK_COMPONENT=$PRODUCT_NAME $JDK_RC_PLATFORM_NAME binary\""
22834 RC_FLAGS="$RC_FLAGS -d \"JDK_VER=$JDK_MINOR_VERSION.$JDK_MICRO_VERSION.$JDK_UPDATE_VERSION_NOTNULL.$COOKED_BUILD_NUMBER\""
22835 RC_FLAGS="$RC_FLAGS -d \"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\""
22836 RC_FLAGS="$RC_FLAGS -d \"JDK_NAME=$PRODUCT_NAME $JDK_RC_PLATFORM_NAME $JDK_MINOR_VERSION $JDK_UPDATE_META_TAG\""
22837 RC_FLAGS="$RC_FLAGS -d \"JDK_FVER=$JDK_MINOR_VERSION,$JDK_MICRO_VERSION,$JDK_UPDATE_VERSION_NOTNULL,$COOKED_BUILD_NUMBER\""
22838
22839 # lib.exe is used to create static libraries.
22840 # Extract the first word of "lib", so it can be a program name with args.
22841 set dummy lib; ac_word=$2
22842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22843 $as_echo_n "checking for $ac_word... " >&6; }
22844 if ${ac_cv_prog_WINAR+:} false; then :
22845 $as_echo_n "(cached) " >&6
22846 else
22847 if test -n "$WINAR"; then
22848 ac_cv_prog_WINAR="$WINAR" # Let the user override the test.
22849 else
22850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22851 for as_dir in $PATH
22852 do
22853 IFS=$as_save_IFS
22854 test -z "$as_dir" && as_dir=.
22855 for ac_exec_ext in '' $ac_executable_extensions; do
22856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22857 ac_cv_prog_WINAR="lib"
22858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22859 break 2
22860 fi
22861 done
22862 done
22863 IFS=$as_save_IFS
22864
22876
22877
22878 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22879
22880 # First separate the path from the arguments. This will split at the first
22881 # space.
22882 complete="$WINAR"
22883 path="${complete%% *}"
22884 tmp="$complete EOL"
22885 arguments="${tmp#* }"
22886
22887 # Input might be given as Windows format, start by converting to
22888 # unix format.
22889 new_path=`$CYGPATH -u "$path"`
22890
22891 # Now try to locate executable using which
22892 new_path=`$WHICH "$new_path" 2> /dev/null`
22893 # bat and cmd files are not always considered executable in cygwin causing which
22894 # to not find them
22895 if test "x$new_path" = x \
22896 && test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
22897 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
22898 new_path=`$CYGPATH -u "$path"`
22899 fi
22900 if test "x$new_path" = x; then
22901 # Oops. Which didn't find the executable.
22902 # The splitting of arguments from the executable at a space might have been incorrect,
22903 # since paths with space are more likely in Windows. Give it another try with the whole
22904 # argument.
22905 path="$complete"
22906 arguments="EOL"
22907 new_path=`$CYGPATH -u "$path"`
22908 new_path=`$WHICH "$new_path" 2> /dev/null`
22909 # bat and cmd files are not always considered executable in cygwin causing which
22910 # to not find them
22911 if test "x$new_path" = x \
22912 && test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
22913 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
22914 new_path=`$CYGPATH -u "$path"`
22915 fi
22916 if test "x$new_path" = x; then
22917 # It's still not found. Now this is an unrecoverable error.
22918 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of WINAR, which resolves as \"$complete\", is not found." >&5
22919 $as_echo "$as_me: The path of WINAR, which resolves as \"$complete\", is not found." >&6;}
22920 has_space=`$ECHO "$complete" | $GREP " "`
22921 if test "x$has_space" != x; then
22922 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
22923 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
22924 fi
22925 as_fn_error $? "Cannot locate the the path of WINAR" "$LINENO" 5
22926 fi
22927 fi
22928
22929 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22930 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22931 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22932 # "foo.exe" is OK but "foo" is an error.
23130 # Now join together the path and the arguments once again
23131 if test "x$arguments" != xEOL; then
23132 new_complete="$new_path ${arguments% *}"
23133 else
23134 new_complete="$new_path"
23135 fi
23136
23137 if test "x$complete" != "x$new_complete"; then
23138 WINAR="$new_complete"
23139 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting WINAR to \"$new_complete\"" >&5
23140 $as_echo "$as_me: Rewriting WINAR to \"$new_complete\"" >&6;}
23141 fi
23142
23143 AR="$WINAR"
23144 ARFLAGS="-nologo -NODEFAULTLIB:MSVCRT"
23145
23146 # Extract the first word of "dumpbin", so it can be a program name with args.
23147 set dummy dumpbin; ac_word=$2
23148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23149 $as_echo_n "checking for $ac_word... " >&6; }
23150 if ${ac_cv_prog_DUMPBIN+:} false; then :
23151 $as_echo_n "(cached) " >&6
23152 else
23153 if test -n "$DUMPBIN"; then
23154 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
23155 else
23156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23157 for as_dir in $PATH
23158 do
23159 IFS=$as_save_IFS
23160 test -z "$as_dir" && as_dir=.
23161 for ac_exec_ext in '' $ac_executable_extensions; do
23162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23163 ac_cv_prog_DUMPBIN="dumpbin"
23164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23165 break 2
23166 fi
23167 done
23168 done
23169 IFS=$as_save_IFS
23170
23182
23183
23184 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23185
23186 # First separate the path from the arguments. This will split at the first
23187 # space.
23188 complete="$DUMPBIN"
23189 path="${complete%% *}"
23190 tmp="$complete EOL"
23191 arguments="${tmp#* }"
23192
23193 # Input might be given as Windows format, start by converting to
23194 # unix format.
23195 new_path=`$CYGPATH -u "$path"`
23196
23197 # Now try to locate executable using which
23198 new_path=`$WHICH "$new_path" 2> /dev/null`
23199 # bat and cmd files are not always considered executable in cygwin causing which
23200 # to not find them
23201 if test "x$new_path" = x \
23202 && test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
23203 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
23204 new_path=`$CYGPATH -u "$path"`
23205 fi
23206 if test "x$new_path" = x; then
23207 # Oops. Which didn't find the executable.
23208 # The splitting of arguments from the executable at a space might have been incorrect,
23209 # since paths with space are more likely in Windows. Give it another try with the whole
23210 # argument.
23211 path="$complete"
23212 arguments="EOL"
23213 new_path=`$CYGPATH -u "$path"`
23214 new_path=`$WHICH "$new_path" 2> /dev/null`
23215 # bat and cmd files are not always considered executable in cygwin causing which
23216 # to not find them
23217 if test "x$new_path" = x \
23218 && test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
23219 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
23220 new_path=`$CYGPATH -u "$path"`
23221 fi
23222 if test "x$new_path" = x; then
23223 # It's still not found. Now this is an unrecoverable error.
23224 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5
23225 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;}
23226 has_space=`$ECHO "$complete" | $GREP " "`
23227 if test "x$has_space" != x; then
23228 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
23229 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
23230 fi
23231 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5
23232 fi
23233 fi
23234
23235 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23236 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23237 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23238 # "foo.exe" is OK but "foo" is an error.
23449
23450 COMPILER_TYPE=CL
23451 CCXXFLAGS="$CCXXFLAGS -nologo"
23452
23453 fi
23454
23455
23456
23457 ac_ext=c
23458 ac_cpp='$CPP $CPPFLAGS'
23459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
23463 $as_echo_n "checking how to run the C preprocessor... " >&6; }
23464 # On Suns, sometimes $CPP names a directory.
23465 if test -n "$CPP" && test -d "$CPP"; then
23466 CPP=
23467 fi
23468 if test -z "$CPP"; then
23469 if ${ac_cv_prog_CPP+:} false; then :
23470 $as_echo_n "(cached) " >&6
23471 else
23472 # Double quotes because CPP needs to be expanded
23473 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
23474 do
23475 ac_preproc_ok=false
23476 for ac_c_preproc_warn_flag in '' yes
23477 do
23478 # Use a header file that comes with gcc, so configuring glibc
23479 # with a fresh cross-compiler works.
23480 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23481 # <limits.h> exists even on freestanding compilers.
23482 # On the NeXT, cc -E runs the code through the compiler's parser,
23483 # not just through cpp. "Syntax error" is here to catch this case.
23484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23485 /* end confdefs.h. */
23486 #ifdef __STDC__
23487 # include <limits.h>
23488 #else
23489 # include <assert.h>
23565 _ACEOF
23566 if ac_fn_c_try_cpp "$LINENO"; then :
23567 # Broken: success on invalid input.
23568 continue
23569 else
23570 # Passes both tests.
23571 ac_preproc_ok=:
23572 break
23573 fi
23574 rm -f conftest.err conftest.i conftest.$ac_ext
23575
23576 done
23577 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
23578 rm -f conftest.i conftest.err conftest.$ac_ext
23579 if $ac_preproc_ok; then :
23580
23581 else
23582 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23584 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
23585 See \`config.log' for more details" "$LINENO" 5; }
23586 fi
23587
23588 ac_ext=cpp
23589 ac_cpp='$CXXCPP $CPPFLAGS'
23590 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23591 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23592 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23593
23594
23595 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23596
23597 # First separate the path from the arguments. This will split at the first
23598 # space.
23599 complete="$CPP"
23600 path="${complete%% *}"
23601 tmp="$complete EOL"
23602 arguments="${tmp#* }"
23603
23604 # Input might be given as Windows format, start by converting to
23605 # unix format.
23606 new_path=`$CYGPATH -u "$path"`
23607
23608 # Now try to locate executable using which
23609 new_path=`$WHICH "$new_path" 2> /dev/null`
23610 # bat and cmd files are not always considered executable in cygwin causing which
23611 # to not find them
23612 if test "x$new_path" = x \
23613 && test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
23614 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
23615 new_path=`$CYGPATH -u "$path"`
23616 fi
23617 if test "x$new_path" = x; then
23618 # Oops. Which didn't find the executable.
23619 # The splitting of arguments from the executable at a space might have been incorrect,
23620 # since paths with space are more likely in Windows. Give it another try with the whole
23621 # argument.
23622 path="$complete"
23623 arguments="EOL"
23624 new_path=`$CYGPATH -u "$path"`
23625 new_path=`$WHICH "$new_path" 2> /dev/null`
23626 # bat and cmd files are not always considered executable in cygwin causing which
23627 # to not find them
23628 if test "x$new_path" = x \
23629 && test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
23630 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
23631 new_path=`$CYGPATH -u "$path"`
23632 fi
23633 if test "x$new_path" = x; then
23634 # It's still not found. Now this is an unrecoverable error.
23635 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5
23636 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;}
23637 has_space=`$ECHO "$complete" | $GREP " "`
23638 if test "x$has_space" != x; then
23639 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
23640 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
23641 fi
23642 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5
23643 fi
23644 fi
23645
23646 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23647 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23648 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23649 # "foo.exe" is OK but "foo" is an error.
23849 new_complete="$new_path ${arguments% *}"
23850 else
23851 new_complete="$new_path"
23852 fi
23853
23854 if test "x$complete" != "x$new_complete"; then
23855 CPP="$new_complete"
23856 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CPP to \"$new_complete\"" >&5
23857 $as_echo "$as_me: Rewriting CPP to \"$new_complete\"" >&6;}
23858 fi
23859
23860
23861 ac_ext=cpp
23862 ac_cpp='$CXXCPP $CPPFLAGS'
23863 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23864 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23865 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
23867 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
23868 if test -z "$CXXCPP"; then
23869 if ${ac_cv_prog_CXXCPP+:} false; then :
23870 $as_echo_n "(cached) " >&6
23871 else
23872 # Double quotes because CXXCPP needs to be expanded
23873 for CXXCPP in "$CXX -E" "/lib/cpp"
23874 do
23875 ac_preproc_ok=false
23876 for ac_cxx_preproc_warn_flag in '' yes
23877 do
23878 # Use a header file that comes with gcc, so configuring glibc
23879 # with a fresh cross-compiler works.
23880 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23881 # <limits.h> exists even on freestanding compilers.
23882 # On the NeXT, cc -E runs the code through the compiler's parser,
23883 # not just through cpp. "Syntax error" is here to catch this case.
23884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23885 /* end confdefs.h. */
23886 #ifdef __STDC__
23887 # include <limits.h>
23888 #else
23889 # include <assert.h>
23965 _ACEOF
23966 if ac_fn_cxx_try_cpp "$LINENO"; then :
23967 # Broken: success on invalid input.
23968 continue
23969 else
23970 # Passes both tests.
23971 ac_preproc_ok=:
23972 break
23973 fi
23974 rm -f conftest.err conftest.i conftest.$ac_ext
23975
23976 done
23977 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
23978 rm -f conftest.i conftest.err conftest.$ac_ext
23979 if $ac_preproc_ok; then :
23980
23981 else
23982 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23983 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23984 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
23985 See \`config.log' for more details" "$LINENO" 5; }
23986 fi
23987
23988 ac_ext=cpp
23989 ac_cpp='$CXXCPP $CPPFLAGS'
23990 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23991 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23992 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23993
23994
23995 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23996
23997 # First separate the path from the arguments. This will split at the first
23998 # space.
23999 complete="$CXXCPP"
24000 path="${complete%% *}"
24001 tmp="$complete EOL"
24002 arguments="${tmp#* }"
24003
24004 # Input might be given as Windows format, start by converting to
24005 # unix format.
24006 new_path=`$CYGPATH -u "$path"`
24007
24008 # Now try to locate executable using which
24009 new_path=`$WHICH "$new_path" 2> /dev/null`
24010 # bat and cmd files are not always considered executable in cygwin causing which
24011 # to not find them
24012 if test "x$new_path" = x \
24013 && test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
24014 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
24015 new_path=`$CYGPATH -u "$path"`
24016 fi
24017 if test "x$new_path" = x; then
24018 # Oops. Which didn't find the executable.
24019 # The splitting of arguments from the executable at a space might have been incorrect,
24020 # since paths with space are more likely in Windows. Give it another try with the whole
24021 # argument.
24022 path="$complete"
24023 arguments="EOL"
24024 new_path=`$CYGPATH -u "$path"`
24025 new_path=`$WHICH "$new_path" 2> /dev/null`
24026 # bat and cmd files are not always considered executable in cygwin causing which
24027 # to not find them
24028 if test "x$new_path" = x \
24029 && test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
24030 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
24031 new_path=`$CYGPATH -u "$path"`
24032 fi
24033 if test "x$new_path" = x; then
24034 # It's still not found. Now this is an unrecoverable error.
24035 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5
24036 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;}
24037 has_space=`$ECHO "$complete" | $GREP " "`
24038 if test "x$has_space" != x; then
24039 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
24040 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
24041 fi
24042 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5
24043 fi
24044 fi
24045
24046 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24047 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24048 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24049 # "foo.exe" is OK but "foo" is an error.
24267 BUILD_CXX="$CXX"
24268 BUILD_LD="$LD"
24269 fi
24270
24271 # for solaris we really need solaris tools, and not gnu equivalent
24272 # these seems to normally reside in /usr/ccs/bin so add that to path before
24273 # starting to probe
24274 #
24275 # NOTE: I add this /usr/ccs/bin after TOOLS but before OLD_PATH
24276 # so that it can be overriden --with-tools-dir
24277 if test "x$OPENJDK_BUILD_OS" = xsolaris; then
24278 PATH="${TOOLS_DIR}:/usr/ccs/bin:${OLD_PATH}"
24279 fi
24280
24281 # Find the right assembler.
24282 if test "x$OPENJDK_TARGET_OS" = xsolaris; then
24283 # Extract the first word of "as", so it can be a program name with args.
24284 set dummy as; ac_word=$2
24285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24286 $as_echo_n "checking for $ac_word... " >&6; }
24287 if ${ac_cv_path_AS+:} false; then :
24288 $as_echo_n "(cached) " >&6
24289 else
24290 case $AS in
24291 [\\/]* | ?:[\\/]*)
24292 ac_cv_path_AS="$AS" # Let the user override the test with a path.
24293 ;;
24294 *)
24295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24296 for as_dir in $PATH
24297 do
24298 IFS=$as_save_IFS
24299 test -z "$as_dir" && as_dir=.
24300 for ac_exec_ext in '' $ac_executable_extensions; do
24301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24302 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext"
24303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24304 break 2
24305 fi
24306 done
24307 done
24322
24323
24324 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24325
24326 # First separate the path from the arguments. This will split at the first
24327 # space.
24328 complete="$AS"
24329 path="${complete%% *}"
24330 tmp="$complete EOL"
24331 arguments="${tmp#* }"
24332
24333 # Input might be given as Windows format, start by converting to
24334 # unix format.
24335 new_path=`$CYGPATH -u "$path"`
24336
24337 # Now try to locate executable using which
24338 new_path=`$WHICH "$new_path" 2> /dev/null`
24339 # bat and cmd files are not always considered executable in cygwin causing which
24340 # to not find them
24341 if test "x$new_path" = x \
24342 && test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
24343 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
24344 new_path=`$CYGPATH -u "$path"`
24345 fi
24346 if test "x$new_path" = x; then
24347 # Oops. Which didn't find the executable.
24348 # The splitting of arguments from the executable at a space might have been incorrect,
24349 # since paths with space are more likely in Windows. Give it another try with the whole
24350 # argument.
24351 path="$complete"
24352 arguments="EOL"
24353 new_path=`$CYGPATH -u "$path"`
24354 new_path=`$WHICH "$new_path" 2> /dev/null`
24355 # bat and cmd files are not always considered executable in cygwin causing which
24356 # to not find them
24357 if test "x$new_path" = x \
24358 && test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
24359 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
24360 new_path=`$CYGPATH -u "$path"`
24361 fi
24362 if test "x$new_path" = x; then
24363 # It's still not found. Now this is an unrecoverable error.
24364 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5
24365 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;}
24366 has_space=`$ECHO "$complete" | $GREP " "`
24367 if test "x$has_space" != x; then
24368 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
24369 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
24370 fi
24371 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5
24372 fi
24373 fi
24374
24375 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24376 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24377 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24378 # "foo.exe" is OK but "foo" is an error.
24581 fi
24582
24583 if test "x$complete" != "x$new_complete"; then
24584 AS="$new_complete"
24585 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AS to \"$new_complete\"" >&5
24586 $as_echo "$as_me: Rewriting AS to \"$new_complete\"" >&6;}
24587 fi
24588
24589 else
24590 AS="$CC -c"
24591 fi
24592
24593
24594 if test "x$OPENJDK_TARGET_OS" = xsolaris; then
24595 for ac_prog in gnm nm
24596 do
24597 # Extract the first word of "$ac_prog", so it can be a program name with args.
24598 set dummy $ac_prog; ac_word=$2
24599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24600 $as_echo_n "checking for $ac_word... " >&6; }
24601 if ${ac_cv_path_NM+:} false; then :
24602 $as_echo_n "(cached) " >&6
24603 else
24604 case $NM in
24605 [\\/]* | ?:[\\/]*)
24606 ac_cv_path_NM="$NM" # Let the user override the test with a path.
24607 ;;
24608 *)
24609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24610 for as_dir in $PATH
24611 do
24612 IFS=$as_save_IFS
24613 test -z "$as_dir" && as_dir=.
24614 for ac_exec_ext in '' $ac_executable_extensions; do
24615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24616 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
24617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24618 break 2
24619 fi
24620 done
24621 done
24639
24640
24641 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24642
24643 # First separate the path from the arguments. This will split at the first
24644 # space.
24645 complete="$NM"
24646 path="${complete%% *}"
24647 tmp="$complete EOL"
24648 arguments="${tmp#* }"
24649
24650 # Input might be given as Windows format, start by converting to
24651 # unix format.
24652 new_path=`$CYGPATH -u "$path"`
24653
24654 # Now try to locate executable using which
24655 new_path=`$WHICH "$new_path" 2> /dev/null`
24656 # bat and cmd files are not always considered executable in cygwin causing which
24657 # to not find them
24658 if test "x$new_path" = x \
24659 && test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
24660 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
24661 new_path=`$CYGPATH -u "$path"`
24662 fi
24663 if test "x$new_path" = x; then
24664 # Oops. Which didn't find the executable.
24665 # The splitting of arguments from the executable at a space might have been incorrect,
24666 # since paths with space are more likely in Windows. Give it another try with the whole
24667 # argument.
24668 path="$complete"
24669 arguments="EOL"
24670 new_path=`$CYGPATH -u "$path"`
24671 new_path=`$WHICH "$new_path" 2> /dev/null`
24672 # bat and cmd files are not always considered executable in cygwin causing which
24673 # to not find them
24674 if test "x$new_path" = x \
24675 && test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
24676 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
24677 new_path=`$CYGPATH -u "$path"`
24678 fi
24679 if test "x$new_path" = x; then
24680 # It's still not found. Now this is an unrecoverable error.
24681 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5
24682 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;}
24683 has_space=`$ECHO "$complete" | $GREP " "`
24684 if test "x$has_space" != x; then
24685 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
24686 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
24687 fi
24688 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5
24689 fi
24690 fi
24691
24692 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24693 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24694 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24695 # "foo.exe" is OK but "foo" is an error.
24890 fi
24891 fi
24892
24893 # Now join together the path and the arguments once again
24894 if test "x$arguments" != xEOL; then
24895 new_complete="$new_path ${arguments% *}"
24896 else
24897 new_complete="$new_path"
24898 fi
24899
24900 if test "x$complete" != "x$new_complete"; then
24901 NM="$new_complete"
24902 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5
24903 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;}
24904 fi
24905
24906 # Extract the first word of "strip", so it can be a program name with args.
24907 set dummy strip; ac_word=$2
24908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24909 $as_echo_n "checking for $ac_word... " >&6; }
24910 if ${ac_cv_path_STRIP+:} false; then :
24911 $as_echo_n "(cached) " >&6
24912 else
24913 case $STRIP in
24914 [\\/]* | ?:[\\/]*)
24915 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
24916 ;;
24917 *)
24918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24919 for as_dir in $PATH
24920 do
24921 IFS=$as_save_IFS
24922 test -z "$as_dir" && as_dir=.
24923 for ac_exec_ext in '' $ac_executable_extensions; do
24924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24925 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
24926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24927 break 2
24928 fi
24929 done
24930 done
24945
24946
24947 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24948
24949 # First separate the path from the arguments. This will split at the first
24950 # space.
24951 complete="$STRIP"
24952 path="${complete%% *}"
24953 tmp="$complete EOL"
24954 arguments="${tmp#* }"
24955
24956 # Input might be given as Windows format, start by converting to
24957 # unix format.
24958 new_path=`$CYGPATH -u "$path"`
24959
24960 # Now try to locate executable using which
24961 new_path=`$WHICH "$new_path" 2> /dev/null`
24962 # bat and cmd files are not always considered executable in cygwin causing which
24963 # to not find them
24964 if test "x$new_path" = x \
24965 && test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
24966 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
24967 new_path=`$CYGPATH -u "$path"`
24968 fi
24969 if test "x$new_path" = x; then
24970 # Oops. Which didn't find the executable.
24971 # The splitting of arguments from the executable at a space might have been incorrect,
24972 # since paths with space are more likely in Windows. Give it another try with the whole
24973 # argument.
24974 path="$complete"
24975 arguments="EOL"
24976 new_path=`$CYGPATH -u "$path"`
24977 new_path=`$WHICH "$new_path" 2> /dev/null`
24978 # bat and cmd files are not always considered executable in cygwin causing which
24979 # to not find them
24980 if test "x$new_path" = x \
24981 && test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
24982 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
24983 new_path=`$CYGPATH -u "$path"`
24984 fi
24985 if test "x$new_path" = x; then
24986 # It's still not found. Now this is an unrecoverable error.
24987 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5
24988 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;}
24989 has_space=`$ECHO "$complete" | $GREP " "`
24990 if test "x$has_space" != x; then
24991 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
24992 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
24993 fi
24994 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5
24995 fi
24996 fi
24997
24998 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24999 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
25000 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
25001 # "foo.exe" is OK but "foo" is an error.
25196 fi
25197 fi
25198
25199 # Now join together the path and the arguments once again
25200 if test "x$arguments" != xEOL; then
25201 new_complete="$new_path ${arguments% *}"
25202 else
25203 new_complete="$new_path"
25204 fi
25205
25206 if test "x$complete" != "x$new_complete"; then
25207 STRIP="$new_complete"
25208 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5
25209 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;}
25210 fi
25211
25212 # Extract the first word of "mcs", so it can be a program name with args.
25213 set dummy mcs; ac_word=$2
25214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25215 $as_echo_n "checking for $ac_word... " >&6; }
25216 if ${ac_cv_path_MCS+:} false; then :
25217 $as_echo_n "(cached) " >&6
25218 else
25219 case $MCS in
25220 [\\/]* | ?:[\\/]*)
25221 ac_cv_path_MCS="$MCS" # Let the user override the test with a path.
25222 ;;
25223 *)
25224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25225 for as_dir in $PATH
25226 do
25227 IFS=$as_save_IFS
25228 test -z "$as_dir" && as_dir=.
25229 for ac_exec_ext in '' $ac_executable_extensions; do
25230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25231 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext"
25232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25233 break 2
25234 fi
25235 done
25236 done
25251
25252
25253 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25254
25255 # First separate the path from the arguments. This will split at the first
25256 # space.
25257 complete="$MCS"
25258 path="${complete%% *}"
25259 tmp="$complete EOL"
25260 arguments="${tmp#* }"
25261
25262 # Input might be given as Windows format, start by converting to
25263 # unix format.
25264 new_path=`$CYGPATH -u "$path"`
25265
25266 # Now try to locate executable using which
25267 new_path=`$WHICH "$new_path" 2> /dev/null`
25268 # bat and cmd files are not always considered executable in cygwin causing which
25269 # to not find them
25270 if test "x$new_path" = x \
25271 && test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
25272 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
25273 new_path=`$CYGPATH -u "$path"`
25274 fi
25275 if test "x$new_path" = x; then
25276 # Oops. Which didn't find the executable.
25277 # The splitting of arguments from the executable at a space might have been incorrect,
25278 # since paths with space are more likely in Windows. Give it another try with the whole
25279 # argument.
25280 path="$complete"
25281 arguments="EOL"
25282 new_path=`$CYGPATH -u "$path"`
25283 new_path=`$WHICH "$new_path" 2> /dev/null`
25284 # bat and cmd files are not always considered executable in cygwin causing which
25285 # to not find them
25286 if test "x$new_path" = x \
25287 && test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
25288 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
25289 new_path=`$CYGPATH -u "$path"`
25290 fi
25291 if test "x$new_path" = x; then
25292 # It's still not found. Now this is an unrecoverable error.
25293 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5
25294 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;}
25295 has_space=`$ECHO "$complete" | $GREP " "`
25296 if test "x$has_space" != x; then
25297 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
25298 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
25299 fi
25300 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5
25301 fi
25302 fi
25303
25304 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
25305 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
25306 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
25307 # "foo.exe" is OK but "foo" is an error.
25504
25505 # Now join together the path and the arguments once again
25506 if test "x$arguments" != xEOL; then
25507 new_complete="$new_path ${arguments% *}"
25508 else
25509 new_complete="$new_path"
25510 fi
25511
25512 if test "x$complete" != "x$new_complete"; then
25513 MCS="$new_complete"
25514 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MCS to \"$new_complete\"" >&5
25515 $as_echo "$as_me: Rewriting MCS to \"$new_complete\"" >&6;}
25516 fi
25517
25518 elif test "x$OPENJDK_TARGET_OS" != xwindows; then
25519 if test -n "$ac_tool_prefix"; then
25520 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
25521 set dummy ${ac_tool_prefix}nm; ac_word=$2
25522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25523 $as_echo_n "checking for $ac_word... " >&6; }
25524 if ${ac_cv_prog_NM+:} false; then :
25525 $as_echo_n "(cached) " >&6
25526 else
25527 if test -n "$NM"; then
25528 ac_cv_prog_NM="$NM" # Let the user override the test.
25529 else
25530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25531 for as_dir in $PATH
25532 do
25533 IFS=$as_save_IFS
25534 test -z "$as_dir" && as_dir=.
25535 for ac_exec_ext in '' $ac_executable_extensions; do
25536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25537 ac_cv_prog_NM="${ac_tool_prefix}nm"
25538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25539 break 2
25540 fi
25541 done
25542 done
25543 IFS=$as_save_IFS
25544
25545 fi
25546 fi
25547 NM=$ac_cv_prog_NM
25548 if test -n "$NM"; then
25549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
25550 $as_echo "$NM" >&6; }
25551 else
25552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25553 $as_echo "no" >&6; }
25554 fi
25555
25556
25557 fi
25558 if test -z "$ac_cv_prog_NM"; then
25559 ac_ct_NM=$NM
25560 # Extract the first word of "nm", so it can be a program name with args.
25561 set dummy nm; ac_word=$2
25562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25563 $as_echo_n "checking for $ac_word... " >&6; }
25564 if ${ac_cv_prog_ac_ct_NM+:} false; then :
25565 $as_echo_n "(cached) " >&6
25566 else
25567 if test -n "$ac_ct_NM"; then
25568 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
25569 else
25570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25571 for as_dir in $PATH
25572 do
25573 IFS=$as_save_IFS
25574 test -z "$as_dir" && as_dir=.
25575 for ac_exec_ext in '' $ac_executable_extensions; do
25576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25577 ac_cv_prog_ac_ct_NM="nm"
25578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25579 break 2
25580 fi
25581 done
25582 done
25583 IFS=$as_save_IFS
25584
25610
25611
25612 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25613
25614 # First separate the path from the arguments. This will split at the first
25615 # space.
25616 complete="$NM"
25617 path="${complete%% *}"
25618 tmp="$complete EOL"
25619 arguments="${tmp#* }"
25620
25621 # Input might be given as Windows format, start by converting to
25622 # unix format.
25623 new_path=`$CYGPATH -u "$path"`
25624
25625 # Now try to locate executable using which
25626 new_path=`$WHICH "$new_path" 2> /dev/null`
25627 # bat and cmd files are not always considered executable in cygwin causing which
25628 # to not find them
25629 if test "x$new_path" = x \
25630 && test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
25631 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
25632 new_path=`$CYGPATH -u "$path"`
25633 fi
25634 if test "x$new_path" = x; then
25635 # Oops. Which didn't find the executable.
25636 # The splitting of arguments from the executable at a space might have been incorrect,
25637 # since paths with space are more likely in Windows. Give it another try with the whole
25638 # argument.
25639 path="$complete"
25640 arguments="EOL"
25641 new_path=`$CYGPATH -u "$path"`
25642 new_path=`$WHICH "$new_path" 2> /dev/null`
25643 # bat and cmd files are not always considered executable in cygwin causing which
25644 # to not find them
25645 if test "x$new_path" = x \
25646 && test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
25647 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
25648 new_path=`$CYGPATH -u "$path"`
25649 fi
25650 if test "x$new_path" = x; then
25651 # It's still not found. Now this is an unrecoverable error.
25652 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5
25653 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;}
25654 has_space=`$ECHO "$complete" | $GREP " "`
25655 if test "x$has_space" != x; then
25656 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
25657 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
25658 fi
25659 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5
25660 fi
25661 fi
25662
25663 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
25664 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
25665 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
25666 # "foo.exe" is OK but "foo" is an error.
25862 fi
25863
25864 # Now join together the path and the arguments once again
25865 if test "x$arguments" != xEOL; then
25866 new_complete="$new_path ${arguments% *}"
25867 else
25868 new_complete="$new_path"
25869 fi
25870
25871 if test "x$complete" != "x$new_complete"; then
25872 NM="$new_complete"
25873 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5
25874 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;}
25875 fi
25876
25877 if test -n "$ac_tool_prefix"; then
25878 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
25879 set dummy ${ac_tool_prefix}strip; ac_word=$2
25880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25881 $as_echo_n "checking for $ac_word... " >&6; }
25882 if ${ac_cv_prog_STRIP+:} false; then :
25883 $as_echo_n "(cached) " >&6
25884 else
25885 if test -n "$STRIP"; then
25886 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
25887 else
25888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25889 for as_dir in $PATH
25890 do
25891 IFS=$as_save_IFS
25892 test -z "$as_dir" && as_dir=.
25893 for ac_exec_ext in '' $ac_executable_extensions; do
25894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25895 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
25896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25897 break 2
25898 fi
25899 done
25900 done
25901 IFS=$as_save_IFS
25902
25903 fi
25904 fi
25905 STRIP=$ac_cv_prog_STRIP
25906 if test -n "$STRIP"; then
25907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
25908 $as_echo "$STRIP" >&6; }
25909 else
25910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25911 $as_echo "no" >&6; }
25912 fi
25913
25914
25915 fi
25916 if test -z "$ac_cv_prog_STRIP"; then
25917 ac_ct_STRIP=$STRIP
25918 # Extract the first word of "strip", so it can be a program name with args.
25919 set dummy strip; ac_word=$2
25920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25921 $as_echo_n "checking for $ac_word... " >&6; }
25922 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
25923 $as_echo_n "(cached) " >&6
25924 else
25925 if test -n "$ac_ct_STRIP"; then
25926 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
25927 else
25928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25929 for as_dir in $PATH
25930 do
25931 IFS=$as_save_IFS
25932 test -z "$as_dir" && as_dir=.
25933 for ac_exec_ext in '' $ac_executable_extensions; do
25934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25935 ac_cv_prog_ac_ct_STRIP="strip"
25936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25937 break 2
25938 fi
25939 done
25940 done
25941 IFS=$as_save_IFS
25942
25968
25969
25970 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
25971
25972 # First separate the path from the arguments. This will split at the first
25973 # space.
25974 complete="$STRIP"
25975 path="${complete%% *}"
25976 tmp="$complete EOL"
25977 arguments="${tmp#* }"
25978
25979 # Input might be given as Windows format, start by converting to
25980 # unix format.
25981 new_path=`$CYGPATH -u "$path"`
25982
25983 # Now try to locate executable using which
25984 new_path=`$WHICH "$new_path" 2> /dev/null`
25985 # bat and cmd files are not always considered executable in cygwin causing which
25986 # to not find them
25987 if test "x$new_path" = x \
25988 && test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
25989 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
25990 new_path=`$CYGPATH -u "$path"`
25991 fi
25992 if test "x$new_path" = x; then
25993 # Oops. Which didn't find the executable.
25994 # The splitting of arguments from the executable at a space might have been incorrect,
25995 # since paths with space are more likely in Windows. Give it another try with the whole
25996 # argument.
25997 path="$complete"
25998 arguments="EOL"
25999 new_path=`$CYGPATH -u "$path"`
26000 new_path=`$WHICH "$new_path" 2> /dev/null`
26001 # bat and cmd files are not always considered executable in cygwin causing which
26002 # to not find them
26003 if test "x$new_path" = x \
26004 && test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
26005 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
26006 new_path=`$CYGPATH -u "$path"`
26007 fi
26008 if test "x$new_path" = x; then
26009 # It's still not found. Now this is an unrecoverable error.
26010 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5
26011 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;}
26012 has_space=`$ECHO "$complete" | $GREP " "`
26013 if test "x$has_space" != x; then
26014 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
26015 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
26016 fi
26017 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5
26018 fi
26019 fi
26020
26021 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
26022 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
26023 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
26024 # "foo.exe" is OK but "foo" is an error.
26227 fi
26228
26229 if test "x$complete" != "x$new_complete"; then
26230 STRIP="$new_complete"
26231 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5
26232 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;}
26233 fi
26234
26235 fi
26236
26237 # objcopy is used for moving debug symbols to separate files when
26238 # full debug symbols are enabled.
26239 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then
26240 if test -n "$ac_tool_prefix"; then
26241 for ac_prog in gobjcopy objcopy
26242 do
26243 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
26244 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
26245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26246 $as_echo_n "checking for $ac_word... " >&6; }
26247 if ${ac_cv_prog_OBJCOPY+:} false; then :
26248 $as_echo_n "(cached) " >&6
26249 else
26250 if test -n "$OBJCOPY"; then
26251 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
26252 else
26253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26254 for as_dir in $PATH
26255 do
26256 IFS=$as_save_IFS
26257 test -z "$as_dir" && as_dir=.
26258 for ac_exec_ext in '' $ac_executable_extensions; do
26259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26260 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog"
26261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26262 break 2
26263 fi
26264 done
26265 done
26266 IFS=$as_save_IFS
26267
26271 if test -n "$OBJCOPY"; then
26272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
26273 $as_echo "$OBJCOPY" >&6; }
26274 else
26275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26276 $as_echo "no" >&6; }
26277 fi
26278
26279
26280 test -n "$OBJCOPY" && break
26281 done
26282 fi
26283 if test -z "$OBJCOPY"; then
26284 ac_ct_OBJCOPY=$OBJCOPY
26285 for ac_prog in gobjcopy objcopy
26286 do
26287 # Extract the first word of "$ac_prog", so it can be a program name with args.
26288 set dummy $ac_prog; ac_word=$2
26289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26290 $as_echo_n "checking for $ac_word... " >&6; }
26291 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then :
26292 $as_echo_n "(cached) " >&6
26293 else
26294 if test -n "$ac_ct_OBJCOPY"; then
26295 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
26296 else
26297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26298 for as_dir in $PATH
26299 do
26300 IFS=$as_save_IFS
26301 test -z "$as_dir" && as_dir=.
26302 for ac_exec_ext in '' $ac_executable_extensions; do
26303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26304 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog"
26305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26306 break 2
26307 fi
26308 done
26309 done
26310 IFS=$as_save_IFS
26311
26341 if test -n "$OBJCOPY"; then
26342
26343 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
26344
26345 # First separate the path from the arguments. This will split at the first
26346 # space.
26347 complete="$OBJCOPY"
26348 path="${complete%% *}"
26349 tmp="$complete EOL"
26350 arguments="${tmp#* }"
26351
26352 # Input might be given as Windows format, start by converting to
26353 # unix format.
26354 new_path=`$CYGPATH -u "$path"`
26355
26356 # Now try to locate executable using which
26357 new_path=`$WHICH "$new_path" 2> /dev/null`
26358 # bat and cmd files are not always considered executable in cygwin causing which
26359 # to not find them
26360 if test "x$new_path" = x \
26361 && test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
26362 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
26363 new_path=`$CYGPATH -u "$path"`
26364 fi
26365 if test "x$new_path" = x; then
26366 # Oops. Which didn't find the executable.
26367 # The splitting of arguments from the executable at a space might have been incorrect,
26368 # since paths with space are more likely in Windows. Give it another try with the whole
26369 # argument.
26370 path="$complete"
26371 arguments="EOL"
26372 new_path=`$CYGPATH -u "$path"`
26373 new_path=`$WHICH "$new_path" 2> /dev/null`
26374 # bat and cmd files are not always considered executable in cygwin causing which
26375 # to not find them
26376 if test "x$new_path" = x \
26377 && test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
26378 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
26379 new_path=`$CYGPATH -u "$path"`
26380 fi
26381 if test "x$new_path" = x; then
26382 # It's still not found. Now this is an unrecoverable error.
26383 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5
26384 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;}
26385 has_space=`$ECHO "$complete" | $GREP " "`
26386 if test "x$has_space" != x; then
26387 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
26388 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
26389 fi
26390 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5
26391 fi
26392 fi
26393
26394 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
26395 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
26396 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
26397 # "foo.exe" is OK but "foo" is an error.
26598 else
26599 new_complete="$new_path"
26600 fi
26601
26602 if test "x$complete" != "x$new_complete"; then
26603 OBJCOPY="$new_complete"
26604 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJCOPY to \"$new_complete\"" >&5
26605 $as_echo "$as_me: Rewriting OBJCOPY to \"$new_complete\"" >&6;}
26606 fi
26607
26608 fi
26609 fi
26610
26611 if test -n "$ac_tool_prefix"; then
26612 for ac_prog in gobjdump objdump
26613 do
26614 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
26615 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
26616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26617 $as_echo_n "checking for $ac_word... " >&6; }
26618 if ${ac_cv_prog_OBJDUMP+:} false; then :
26619 $as_echo_n "(cached) " >&6
26620 else
26621 if test -n "$OBJDUMP"; then
26622 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
26623 else
26624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26625 for as_dir in $PATH
26626 do
26627 IFS=$as_save_IFS
26628 test -z "$as_dir" && as_dir=.
26629 for ac_exec_ext in '' $ac_executable_extensions; do
26630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26631 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog"
26632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26633 break 2
26634 fi
26635 done
26636 done
26637 IFS=$as_save_IFS
26638
26642 if test -n "$OBJDUMP"; then
26643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
26644 $as_echo "$OBJDUMP" >&6; }
26645 else
26646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26647 $as_echo "no" >&6; }
26648 fi
26649
26650
26651 test -n "$OBJDUMP" && break
26652 done
26653 fi
26654 if test -z "$OBJDUMP"; then
26655 ac_ct_OBJDUMP=$OBJDUMP
26656 for ac_prog in gobjdump objdump
26657 do
26658 # Extract the first word of "$ac_prog", so it can be a program name with args.
26659 set dummy $ac_prog; ac_word=$2
26660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26661 $as_echo_n "checking for $ac_word... " >&6; }
26662 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
26663 $as_echo_n "(cached) " >&6
26664 else
26665 if test -n "$ac_ct_OBJDUMP"; then
26666 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
26667 else
26668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26669 for as_dir in $PATH
26670 do
26671 IFS=$as_save_IFS
26672 test -z "$as_dir" && as_dir=.
26673 for ac_exec_ext in '' $ac_executable_extensions; do
26674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26675 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog"
26676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26677 break 2
26678 fi
26679 done
26680 done
26681 IFS=$as_save_IFS
26682
26712 # Only used for compare.sh; we can live without it. BASIC_FIXUP_EXECUTABLE bails if argument is missing.
26713
26714 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
26715
26716 # First separate the path from the arguments. This will split at the first
26717 # space.
26718 complete="$OBJDUMP"
26719 path="${complete%% *}"
26720 tmp="$complete EOL"
26721 arguments="${tmp#* }"
26722
26723 # Input might be given as Windows format, start by converting to
26724 # unix format.
26725 new_path=`$CYGPATH -u "$path"`
26726
26727 # Now try to locate executable using which
26728 new_path=`$WHICH "$new_path" 2> /dev/null`
26729 # bat and cmd files are not always considered executable in cygwin causing which
26730 # to not find them
26731 if test "x$new_path" = x \
26732 && test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
26733 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
26734 new_path=`$CYGPATH -u "$path"`
26735 fi
26736 if test "x$new_path" = x; then
26737 # Oops. Which didn't find the executable.
26738 # The splitting of arguments from the executable at a space might have been incorrect,
26739 # since paths with space are more likely in Windows. Give it another try with the whole
26740 # argument.
26741 path="$complete"
26742 arguments="EOL"
26743 new_path=`$CYGPATH -u "$path"`
26744 new_path=`$WHICH "$new_path" 2> /dev/null`
26745 # bat and cmd files are not always considered executable in cygwin causing which
26746 # to not find them
26747 if test "x$new_path" = x \
26748 && test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
26749 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
26750 new_path=`$CYGPATH -u "$path"`
26751 fi
26752 if test "x$new_path" = x; then
26753 # It's still not found. Now this is an unrecoverable error.
26754 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5
26755 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;}
26756 has_space=`$ECHO "$complete" | $GREP " "`
26757 if test "x$has_space" != x; then
26758 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
26759 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
26760 fi
26761 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5
26762 fi
26763 fi
26764
26765 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
26766 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
26767 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
26768 # "foo.exe" is OK but "foo" is an error.
26966 # Now join together the path and the arguments once again
26967 if test "x$arguments" != xEOL; then
26968 new_complete="$new_path ${arguments% *}"
26969 else
26970 new_complete="$new_path"
26971 fi
26972
26973 if test "x$complete" != "x$new_complete"; then
26974 OBJDUMP="$new_complete"
26975 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJDUMP to \"$new_complete\"" >&5
26976 $as_echo "$as_me: Rewriting OBJDUMP to \"$new_complete\"" >&6;}
26977 fi
26978
26979 fi
26980
26981 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
26982 # Extract the first word of "lipo", so it can be a program name with args.
26983 set dummy lipo; ac_word=$2
26984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26985 $as_echo_n "checking for $ac_word... " >&6; }
26986 if ${ac_cv_path_LIPO+:} false; then :
26987 $as_echo_n "(cached) " >&6
26988 else
26989 case $LIPO in
26990 [\\/]* | ?:[\\/]*)
26991 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path.
26992 ;;
26993 *)
26994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26995 for as_dir in $PATH
26996 do
26997 IFS=$as_save_IFS
26998 test -z "$as_dir" && as_dir=.
26999 for ac_exec_ext in '' $ac_executable_extensions; do
27000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27001 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext"
27002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27003 break 2
27004 fi
27005 done
27006 done
27021
27022
27023 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
27024
27025 # First separate the path from the arguments. This will split at the first
27026 # space.
27027 complete="$LIPO"
27028 path="${complete%% *}"
27029 tmp="$complete EOL"
27030 arguments="${tmp#* }"
27031
27032 # Input might be given as Windows format, start by converting to
27033 # unix format.
27034 new_path=`$CYGPATH -u "$path"`
27035
27036 # Now try to locate executable using which
27037 new_path=`$WHICH "$new_path" 2> /dev/null`
27038 # bat and cmd files are not always considered executable in cygwin causing which
27039 # to not find them
27040 if test "x$new_path" = x \
27041 && test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
27042 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
27043 new_path=`$CYGPATH -u "$path"`
27044 fi
27045 if test "x$new_path" = x; then
27046 # Oops. Which didn't find the executable.
27047 # The splitting of arguments from the executable at a space might have been incorrect,
27048 # since paths with space are more likely in Windows. Give it another try with the whole
27049 # argument.
27050 path="$complete"
27051 arguments="EOL"
27052 new_path=`$CYGPATH -u "$path"`
27053 new_path=`$WHICH "$new_path" 2> /dev/null`
27054 # bat and cmd files are not always considered executable in cygwin causing which
27055 # to not find them
27056 if test "x$new_path" = x \
27057 && test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
27058 && test "x`$LS \"$path\" 2>/dev/null`" != x; then
27059 new_path=`$CYGPATH -u "$path"`
27060 fi
27061 if test "x$new_path" = x; then
27062 # It's still not found. Now this is an unrecoverable error.
27063 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5
27064 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;}
27065 has_space=`$ECHO "$complete" | $GREP " "`
27066 if test "x$has_space" != x; then
27067 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
27068 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
27069 fi
27070 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5
27071 fi
27072 fi
27073
27074 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
27075 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
27076 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
27077 # "foo.exe" is OK but "foo" is an error.
27281
27282 if test "x$complete" != "x$new_complete"; then
27283 LIPO="$new_complete"
27284 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LIPO to \"$new_complete\"" >&5
27285 $as_echo "$as_me: Rewriting LIPO to \"$new_complete\"" >&6;}
27286 fi
27287
27288 fi
27289
27290 # Restore old path without tools dir
27291 PATH="$OLD_PATH"
27292
27293
27294 # FIXME: Currently we must test this after paths but before flags. Fix!
27295
27296 # And we can test some aspects on the target using configure macros.
27297
27298
27299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
27300 $as_echo_n "checking for ANSI C header files... " >&6; }
27301 if ${ac_cv_header_stdc+:} false; then :
27302 $as_echo_n "(cached) " >&6
27303 else
27304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27305 /* end confdefs.h. */
27306 #include <stdlib.h>
27307 #include <stdarg.h>
27308 #include <string.h>
27309 #include <float.h>
27310
27311 int
27312 main ()
27313 {
27314
27315 ;
27316 return 0;
27317 }
27318 _ACEOF
27319 if ac_fn_cxx_try_compile "$LINENO"; then :
27320 ac_cv_header_stdc=yes
27321 else
27457 # to prevent emitting warning...
27458 ADDED_CFLAGS=" -m${OPENJDK_TARGET_CPU_BITS}"
27459 ADDED_CXXFLAGS=" -m${OPENJDK_TARGET_CPU_BITS}"
27460 ADDED_LDFLAGS=" -m${OPENJDK_TARGET_CPU_BITS}"
27461
27462 CFLAGS="${CFLAGS}${ADDED_CFLAGS}"
27463 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}"
27464 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}"
27465
27466 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}"
27467 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}"
27468 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}"
27469
27470 fi
27471 fi
27472
27473 # Make compilation sanity check
27474 for ac_header in stdio.h
27475 do :
27476 ac_fn_cxx_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
27477 if test "x$ac_cv_header_stdio_h" = xyes; then :
27478 cat >>confdefs.h <<_ACEOF
27479 #define HAVE_STDIO_H 1
27480 _ACEOF
27481
27482 else
27483
27484 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to compile stdio.h. This likely implies missing compile dependencies." >&5
27485 $as_echo "$as_me: Failed to compile stdio.h. This likely implies missing compile dependencies." >&6;}
27486 if test "x$COMPILE_TYPE" = xreduced; then
27487 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed." >&5
27488 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed." >&6;}
27489 elif test "x$COMPILE_TYPE" = xcross; then
27490 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5
27491 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;}
27492 fi
27493 as_fn_error $? "Cannot continue." "$LINENO" 5
27494
27495 fi
27496
27497 done
27498
27499
27500 # The cast to long int works around a bug in the HP C Compiler
27501 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27502 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27503 # This bug is HP SR number 8606223364.
27504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
27505 $as_echo_n "checking size of int *... " >&6; }
27506 if ${ac_cv_sizeof_int_p+:} false; then :
27507 $as_echo_n "(cached) " >&6
27508 else
27509 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then :
27510
27511 else
27512 if test "$ac_cv_type_int_p" = yes; then
27513 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27514 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27515 as_fn_error 77 "cannot compute sizeof (int *)
27516 See \`config.log' for more details" "$LINENO" 5; }
27517 else
27518 ac_cv_sizeof_int_p=0
27519 fi
27520 fi
27521
27522 fi
27523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
27524 $as_echo "$ac_cv_sizeof_int_p" >&6; }
27525
27526
27527
27528 cat >>confdefs.h <<_ACEOF
27529 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
27530 _ACEOF
27531
27532
27533
27534 if test "x$SIZEOF_INT_P" != "x$ac_cv_sizeof_int_p"; then
27535 # Workaround autoconf bug, see http://lists.gnu.org/archive/html/autoconf/2010-07/msg00004.html
27536 SIZEOF_INT_P="$ac_cv_sizeof_int_p"
27543 else
27544 TESTED_TARGET_CPU_BITS=`expr 8 \* $SIZEOF_INT_P`
27545
27546 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then
27547 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
27548 fi
27549 fi
27550
27551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target address size" >&5
27552 $as_echo_n "checking for target address size... " >&6; }
27553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_CPU_BITS bits" >&5
27554 $as_echo "$OPENJDK_TARGET_CPU_BITS bits" >&6; }
27555
27556
27557 ###############################################################################
27558 #
27559 # Is the target little of big endian?
27560 #
27561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
27562 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
27563 if ${ac_cv_c_bigendian+:} false; then :
27564 $as_echo_n "(cached) " >&6
27565 else
27566 ac_cv_c_bigendian=unknown
27567 # See if we're dealing with a universal compiler.
27568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27569 /* end confdefs.h. */
27570 #ifndef __APPLE_CC__
27571 not a universal capable compiler
27572 #endif
27573 typedef int dummy;
27574
27575 _ACEOF
27576 if ac_fn_cxx_try_compile "$LINENO"; then :
27577
27578 # Check for potential -arch flags. It is not universal unless
27579 # there are at least two -arch flags with different values.
27580 ac_arch=
27581 ac_prev=
27582 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
27583 if test -n "$ac_prev"; then
28543 fi
28544 fi
28545 fi
28546
28547 # Now let autoconf do it's magic
28548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
28549 $as_echo_n "checking for X... " >&6; }
28550
28551
28552 # Check whether --with-x was given.
28553 if test "${with_x+set}" = set; then :
28554 withval=$with_x;
28555 fi
28556
28557 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
28558 if test "x$with_x" = xno; then
28559 # The user explicitly disabled X.
28560 have_x=disabled
28561 else
28562 case $x_includes,$x_libraries in #(
28563 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
28564 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
28565 $as_echo_n "(cached) " >&6
28566 else
28567 # One or both of the vars are not set, and there is no cached value.
28568 ac_x_includes=no ac_x_libraries=no
28569 rm -f -r conftest.dir
28570 if mkdir conftest.dir; then
28571 cd conftest.dir
28572 cat >Imakefile <<'_ACEOF'
28573 incroot:
28574 @echo incroot='${INCROOT}'
28575 usrlibdir:
28576 @echo usrlibdir='${USRLIBDIR}'
28577 libdir:
28578 @echo libdir='${LIBDIR}'
28579 _ACEOF
28580 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
28581 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
28582 for ac_var in incroot usrlibdir libdir; do
28583 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
28584 done
28821 /* Override any GCC internal prototype to avoid an error.
28822 Use char because int might match the return type of a GCC
28823 builtin and then its argument prototype would still apply. */
28824 #ifdef __cplusplus
28825 extern "C"
28826 #endif
28827 char XOpenDisplay ();
28828 int
28829 main ()
28830 {
28831 return XOpenDisplay ();
28832 ;
28833 return 0;
28834 }
28835 _ACEOF
28836 if ac_fn_cxx_try_link "$LINENO"; then :
28837
28838 else
28839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
28840 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
28841 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
28842 $as_echo_n "(cached) " >&6
28843 else
28844 ac_check_lib_save_LIBS=$LIBS
28845 LIBS="-ldnet $LIBS"
28846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28847 /* end confdefs.h. */
28848
28849 /* Override any GCC internal prototype to avoid an error.
28850 Use char because int might match the return type of a GCC
28851 builtin and then its argument prototype would still apply. */
28852 #ifdef __cplusplus
28853 extern "C"
28854 #endif
28855 char dnet_ntoa ();
28856 int
28857 main ()
28858 {
28859 return dnet_ntoa ();
28860 ;
28861 return 0;
28862 }
28863 _ACEOF
28864 if ac_fn_cxx_try_link "$LINENO"; then :
28865 ac_cv_lib_dnet_dnet_ntoa=yes
28866 else
28867 ac_cv_lib_dnet_dnet_ntoa=no
28868 fi
28869 rm -f core conftest.err conftest.$ac_objext \
28870 conftest$ac_exeext conftest.$ac_ext
28871 LIBS=$ac_check_lib_save_LIBS
28872 fi
28873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
28874 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
28875 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
28876 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
28877 fi
28878
28879 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
28880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
28881 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
28882 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
28883 $as_echo_n "(cached) " >&6
28884 else
28885 ac_check_lib_save_LIBS=$LIBS
28886 LIBS="-ldnet_stub $LIBS"
28887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28888 /* end confdefs.h. */
28889
28890 /* Override any GCC internal prototype to avoid an error.
28891 Use char because int might match the return type of a GCC
28892 builtin and then its argument prototype would still apply. */
28893 #ifdef __cplusplus
28894 extern "C"
28895 #endif
28896 char dnet_ntoa ();
28897 int
28898 main ()
28899 {
28900 return dnet_ntoa ();
28901 ;
28902 return 0;
28903 }
28904 _ACEOF
28905 if ac_fn_cxx_try_link "$LINENO"; then :
28906 ac_cv_lib_dnet_stub_dnet_ntoa=yes
28907 else
28908 ac_cv_lib_dnet_stub_dnet_ntoa=no
28909 fi
28910 rm -f core conftest.err conftest.$ac_objext \
28911 conftest$ac_exeext conftest.$ac_ext
28912 LIBS=$ac_check_lib_save_LIBS
28913 fi
28914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
28915 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
28916 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
28917 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
28918 fi
28919
28920 fi
28921 fi
28922 rm -f core conftest.err conftest.$ac_objext \
28923 conftest$ac_exeext conftest.$ac_ext
28924 LIBS="$ac_xsave_LIBS"
28925
28926 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
28927 # to get the SysV transport functions.
28928 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
28929 # needs -lnsl.
28930 # The nsl library prevents programs from opening the X display
28931 # on Irix 5.2, according to T.E. Dickey.
28932 # The functions gethostbyname, getservbyname, and inet_addr are
28933 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
28934 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
28935 if test "x$ac_cv_func_gethostbyname" = xyes; then :
28936
28937 fi
28938
28939 if test $ac_cv_func_gethostbyname = no; then
28940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
28941 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
28942 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
28943 $as_echo_n "(cached) " >&6
28944 else
28945 ac_check_lib_save_LIBS=$LIBS
28946 LIBS="-lnsl $LIBS"
28947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28948 /* end confdefs.h. */
28949
28950 /* Override any GCC internal prototype to avoid an error.
28951 Use char because int might match the return type of a GCC
28952 builtin and then its argument prototype would still apply. */
28953 #ifdef __cplusplus
28954 extern "C"
28955 #endif
28956 char gethostbyname ();
28957 int
28958 main ()
28959 {
28960 return gethostbyname ();
28961 ;
28962 return 0;
28963 }
28964 _ACEOF
28965 if ac_fn_cxx_try_link "$LINENO"; then :
28966 ac_cv_lib_nsl_gethostbyname=yes
28967 else
28968 ac_cv_lib_nsl_gethostbyname=no
28969 fi
28970 rm -f core conftest.err conftest.$ac_objext \
28971 conftest$ac_exeext conftest.$ac_ext
28972 LIBS=$ac_check_lib_save_LIBS
28973 fi
28974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
28975 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
28976 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
28977 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
28978 fi
28979
28980 if test $ac_cv_lib_nsl_gethostbyname = no; then
28981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
28982 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
28983 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
28984 $as_echo_n "(cached) " >&6
28985 else
28986 ac_check_lib_save_LIBS=$LIBS
28987 LIBS="-lbsd $LIBS"
28988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28989 /* end confdefs.h. */
28990
28991 /* Override any GCC internal prototype to avoid an error.
28992 Use char because int might match the return type of a GCC
28993 builtin and then its argument prototype would still apply. */
28994 #ifdef __cplusplus
28995 extern "C"
28996 #endif
28997 char gethostbyname ();
28998 int
28999 main ()
29000 {
29001 return gethostbyname ();
29002 ;
29003 return 0;
29004 }
29005 _ACEOF
29006 if ac_fn_cxx_try_link "$LINENO"; then :
29007 ac_cv_lib_bsd_gethostbyname=yes
29008 else
29009 ac_cv_lib_bsd_gethostbyname=no
29010 fi
29011 rm -f core conftest.err conftest.$ac_objext \
29012 conftest$ac_exeext conftest.$ac_ext
29013 LIBS=$ac_check_lib_save_LIBS
29014 fi
29015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
29016 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
29017 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
29018 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
29019 fi
29020
29021 fi
29022 fi
29023
29024 # lieder@skyler.mavd.honeywell.com says without -lsocket,
29025 # socket/setsockopt and other routines are undefined under SCO ODT
29026 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
29027 # on later versions), says Simon Leinen: it contains gethostby*
29028 # variants that don't use the name server (or something). -lsocket
29029 # must be given before -lnsl if both are needed. We assume that
29030 # if connect needs -lnsl, so does gethostbyname.
29031 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect"
29032 if test "x$ac_cv_func_connect" = xyes; then :
29033
29034 fi
29035
29036 if test $ac_cv_func_connect = no; then
29037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
29038 $as_echo_n "checking for connect in -lsocket... " >&6; }
29039 if ${ac_cv_lib_socket_connect+:} false; then :
29040 $as_echo_n "(cached) " >&6
29041 else
29042 ac_check_lib_save_LIBS=$LIBS
29043 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
29044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29045 /* end confdefs.h. */
29046
29047 /* Override any GCC internal prototype to avoid an error.
29048 Use char because int might match the return type of a GCC
29049 builtin and then its argument prototype would still apply. */
29050 #ifdef __cplusplus
29051 extern "C"
29052 #endif
29053 char connect ();
29054 int
29055 main ()
29056 {
29057 return connect ();
29058 ;
29059 return 0;
29060 }
29061 _ACEOF
29062 if ac_fn_cxx_try_link "$LINENO"; then :
29063 ac_cv_lib_socket_connect=yes
29064 else
29065 ac_cv_lib_socket_connect=no
29066 fi
29067 rm -f core conftest.err conftest.$ac_objext \
29068 conftest$ac_exeext conftest.$ac_ext
29069 LIBS=$ac_check_lib_save_LIBS
29070 fi
29071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
29072 $as_echo "$ac_cv_lib_socket_connect" >&6; }
29073 if test "x$ac_cv_lib_socket_connect" = xyes; then :
29074 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
29075 fi
29076
29077 fi
29078
29079 # Guillermo Gomez says -lposix is necessary on A/UX.
29080 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove"
29081 if test "x$ac_cv_func_remove" = xyes; then :
29082
29083 fi
29084
29085 if test $ac_cv_func_remove = no; then
29086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
29087 $as_echo_n "checking for remove in -lposix... " >&6; }
29088 if ${ac_cv_lib_posix_remove+:} false; then :
29089 $as_echo_n "(cached) " >&6
29090 else
29091 ac_check_lib_save_LIBS=$LIBS
29092 LIBS="-lposix $LIBS"
29093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29094 /* end confdefs.h. */
29095
29096 /* Override any GCC internal prototype to avoid an error.
29097 Use char because int might match the return type of a GCC
29098 builtin and then its argument prototype would still apply. */
29099 #ifdef __cplusplus
29100 extern "C"
29101 #endif
29102 char remove ();
29103 int
29104 main ()
29105 {
29106 return remove ();
29107 ;
29108 return 0;
29109 }
29110 _ACEOF
29111 if ac_fn_cxx_try_link "$LINENO"; then :
29112 ac_cv_lib_posix_remove=yes
29113 else
29114 ac_cv_lib_posix_remove=no
29115 fi
29116 rm -f core conftest.err conftest.$ac_objext \
29117 conftest$ac_exeext conftest.$ac_ext
29118 LIBS=$ac_check_lib_save_LIBS
29119 fi
29120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
29121 $as_echo "$ac_cv_lib_posix_remove" >&6; }
29122 if test "x$ac_cv_lib_posix_remove" = xyes; then :
29123 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
29124 fi
29125
29126 fi
29127
29128 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
29129 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
29130 if test "x$ac_cv_func_shmat" = xyes; then :
29131
29132 fi
29133
29134 if test $ac_cv_func_shmat = no; then
29135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
29136 $as_echo_n "checking for shmat in -lipc... " >&6; }
29137 if ${ac_cv_lib_ipc_shmat+:} false; then :
29138 $as_echo_n "(cached) " >&6
29139 else
29140 ac_check_lib_save_LIBS=$LIBS
29141 LIBS="-lipc $LIBS"
29142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29143 /* end confdefs.h. */
29144
29145 /* Override any GCC internal prototype to avoid an error.
29146 Use char because int might match the return type of a GCC
29147 builtin and then its argument prototype would still apply. */
29148 #ifdef __cplusplus
29149 extern "C"
29150 #endif
29151 char shmat ();
29152 int
29153 main ()
29154 {
29155 return shmat ();
29156 ;
29157 return 0;
29158 }
29159 _ACEOF
29160 if ac_fn_cxx_try_link "$LINENO"; then :
29161 ac_cv_lib_ipc_shmat=yes
29162 else
29163 ac_cv_lib_ipc_shmat=no
29164 fi
29165 rm -f core conftest.err conftest.$ac_objext \
29166 conftest$ac_exeext conftest.$ac_ext
29167 LIBS=$ac_check_lib_save_LIBS
29168 fi
29169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
29170 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
29171 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
29172 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
29173 fi
29174
29175 fi
29176 fi
29177
29178 # Check for libraries that X11R6 Xt/Xaw programs need.
29179 ac_save_LDFLAGS=$LDFLAGS
29180 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
29181 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
29182 # check for ICE first), but we must link in the order -lSM -lICE or
29183 # we get undefined symbols. So assume we have SM if we have ICE.
29184 # These have to be linked with before -lX11, unlike the other
29185 # libraries we check for below, so use a different variable.
29186 # John Interrante, Karl Berry
29187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
29188 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
29189 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
29190 $as_echo_n "(cached) " >&6
29191 else
29192 ac_check_lib_save_LIBS=$LIBS
29193 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
29194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29195 /* end confdefs.h. */
29196
29197 /* Override any GCC internal prototype to avoid an error.
29198 Use char because int might match the return type of a GCC
29199 builtin and then its argument prototype would still apply. */
29200 #ifdef __cplusplus
29201 extern "C"
29202 #endif
29203 char IceConnectionNumber ();
29204 int
29205 main ()
29206 {
29207 return IceConnectionNumber ();
29208 ;
29209 return 0;
29210 }
29211 _ACEOF
29212 if ac_fn_cxx_try_link "$LINENO"; then :
29213 ac_cv_lib_ICE_IceConnectionNumber=yes
29214 else
29215 ac_cv_lib_ICE_IceConnectionNumber=no
29216 fi
29217 rm -f core conftest.err conftest.$ac_objext \
29218 conftest$ac_exeext conftest.$ac_ext
29219 LIBS=$ac_check_lib_save_LIBS
29220 fi
29221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
29222 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
29223 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
29224 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
29225 fi
29226
29227 LDFLAGS=$ac_save_LDFLAGS
29228
29229 fi
29230
29231
29232 if test "x$no_x" = xyes && test "x$X11_NOT_NEEDED" != xyes; then
29233
29234 # Print a helpful message on how to acquire the necessary build dependency.
29235 # x11 is the help tag: freetyp2, cups, pulse, alsa etc
29236 MISSING_DEPENDENCY=x11
29237 PKGHANDLER_COMMAND=
29238
29239 case $PKGHANDLER in
29240 apt-get)
29241 apt_help $MISSING_DEPENDENCY ;;
29242 yum)
29243 yum_help $MISSING_DEPENDENCY ;;
30210 pkgutil_help $MISSING_DEPENDENCY ;;
30211 pkgadd)
30212 pkgadd_help $MISSING_DEPENDENCY ;;
30213 * )
30214 break ;;
30215 esac
30216
30217 if test "x$PKGHANDLER_COMMAND" != x; then
30218 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
30219 fi
30220
30221 as_fn_error $? "Could not find freetype2! $HELP_MSG " "$LINENO" 5
30222 fi
30223
30224 if test "x$OPENJDK_TARGET_OS" != xwindows; then
30225 # AC_CHECK_LIB does not support use of cl.exe
30226 PREV_LDFLAGS="$LDFLAGS"
30227 LDFLAGS="$FREETYPE2_LIBS"
30228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
30229 $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
30230 if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
30231 $as_echo_n "(cached) " >&6
30232 else
30233 ac_check_lib_save_LIBS=$LIBS
30234 LIBS="-lfreetype $LIBS"
30235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30236 /* end confdefs.h. */
30237
30238 /* Override any GCC internal prototype to avoid an error.
30239 Use char because int might match the return type of a GCC
30240 builtin and then its argument prototype would still apply. */
30241 #ifdef __cplusplus
30242 extern "C"
30243 #endif
30244 char FT_Init_FreeType ();
30245 int
30246 main ()
30247 {
30248 return FT_Init_FreeType ();
30249 ;
30250 return 0;
30251 }
30252 _ACEOF
30253 if ac_fn_cxx_try_link "$LINENO"; then :
30254 ac_cv_lib_freetype_FT_Init_FreeType=yes
30255 else
30256 ac_cv_lib_freetype_FT_Init_FreeType=no
30257 fi
30258 rm -f core conftest.err conftest.$ac_objext \
30259 conftest$ac_exeext conftest.$ac_ext
30260 LIBS=$ac_check_lib_save_LIBS
30261 fi
30262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
30263 $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
30264 if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
30265 FREETYPE2_FOUND=true
30266 else
30267 as_fn_error $? "Could not find freetype2! $HELP_MSG " "$LINENO" 5
30268 fi
30269
30270 LDFLAGS="$PREV_LDFLAGS"
30271 fi
30272 fi
30273
30274
30275
30276
30277
30278
30279
30280
30281
30282 ###############################################################################
30283 #
30284 # Check for alsa headers and libraries. Used on Linux/GNU systems.
30532 # Put the nasty error message in config.log where it belongs
30533 echo "$ALSA_PKG_ERRORS" >&5
30534
30535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30536 $as_echo "no" >&6; }
30537 ALSA_FOUND=no
30538 elif test $pkg_failed = untried; then
30539 ALSA_FOUND=no
30540 else
30541 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
30542 ALSA_LIBS=$pkg_cv_ALSA_LIBS
30543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30544 $as_echo "yes" >&6; }
30545 ALSA_FOUND=yes
30546 fi
30547 fi
30548 if test "x$ALSA_FOUND" = xno; then
30549 for ac_header in alsa/asoundlib.h
30550 do :
30551 ac_fn_cxx_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
30552 if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then :
30553 cat >>confdefs.h <<_ACEOF
30554 #define HAVE_ALSA_ASOUNDLIB_H 1
30555 _ACEOF
30556 ALSA_FOUND=yes
30557 ALSA_CFLAGS=-Iignoreme
30558 ALSA_LIBS=-lasound
30559 DEFAULT_ALSA=yes
30560 else
30561 ALSA_FOUND=no
30562 fi
30563
30564 done
30565
30566 fi
30567 if test "x$ALSA_FOUND" = xno; then
30568
30569 # Print a helpful message on how to acquire the necessary build dependency.
30570 # alsa is the help tag: freetyp2, cups, pulse, alsa etc
30571 MISSING_DEPENDENCY=alsa
30572 PKGHANDLER_COMMAND=
30591 fi
30592
30593 as_fn_error $? "Could not find alsa! $HELP_MSG " "$LINENO" 5
30594 fi
30595 fi
30596
30597
30598
30599
30600
30601
30602
30603 ###############################################################################
30604 #
30605 # Check for the jpeg library
30606 #
30607
30608 USE_EXTERNAL_LIBJPEG=true
30609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ljpeg" >&5
30610 $as_echo_n "checking for main in -ljpeg... " >&6; }
30611 if ${ac_cv_lib_jpeg_main+:} false; then :
30612 $as_echo_n "(cached) " >&6
30613 else
30614 ac_check_lib_save_LIBS=$LIBS
30615 LIBS="-ljpeg $LIBS"
30616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30617 /* end confdefs.h. */
30618
30619
30620 int
30621 main ()
30622 {
30623 return main ();
30624 ;
30625 return 0;
30626 }
30627 _ACEOF
30628 if ac_fn_cxx_try_link "$LINENO"; then :
30629 ac_cv_lib_jpeg_main=yes
30630 else
30631 ac_cv_lib_jpeg_main=no
30632 fi
30633 rm -f core conftest.err conftest.$ac_objext \
30634 conftest$ac_exeext conftest.$ac_ext
30635 LIBS=$ac_check_lib_save_LIBS
30636 fi
30637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_main" >&5
30638 $as_echo "$ac_cv_lib_jpeg_main" >&6; }
30639 if test "x$ac_cv_lib_jpeg_main" = xyes; then :
30640 cat >>confdefs.h <<_ACEOF
30641 #define HAVE_LIBJPEG 1
30642 _ACEOF
30643
30644 LIBS="-ljpeg $LIBS"
30645
30646 else
30647 USE_EXTERNAL_LIBJPEG=false
30648 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use jpeg decoder bundled with the OpenJDK source" >&5
30649 $as_echo "$as_me: Will use jpeg decoder bundled with the OpenJDK source" >&6;}
30650
30651 fi
30652
30653
30654
30655 ###############################################################################
30656 #
30657 # Check for the gif library
30658 #
30659
30660 USE_EXTERNAL_LIBJPEG=true
30661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgif" >&5
30662 $as_echo_n "checking for main in -lgif... " >&6; }
30663 if ${ac_cv_lib_gif_main+:} false; then :
30664 $as_echo_n "(cached) " >&6
30665 else
30666 ac_check_lib_save_LIBS=$LIBS
30667 LIBS="-lgif $LIBS"
30668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30669 /* end confdefs.h. */
30670
30671
30672 int
30673 main ()
30674 {
30675 return main ();
30676 ;
30677 return 0;
30678 }
30679 _ACEOF
30680 if ac_fn_cxx_try_link "$LINENO"; then :
30681 ac_cv_lib_gif_main=yes
30682 else
30683 ac_cv_lib_gif_main=no
30684 fi
30685 rm -f core conftest.err conftest.$ac_objext \
30686 conftest$ac_exeext conftest.$ac_ext
30687 LIBS=$ac_check_lib_save_LIBS
30688 fi
30689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_main" >&5
30690 $as_echo "$ac_cv_lib_gif_main" >&6; }
30691 if test "x$ac_cv_lib_gif_main" = xyes; then :
30692 cat >>confdefs.h <<_ACEOF
30693 #define HAVE_LIBGIF 1
30694 _ACEOF
30695
30696 LIBS="-lgif $LIBS"
30697
30698 else
30699 USE_EXTERNAL_LIBGIF=false
30700 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use gif decoder bundled with the OpenJDK source" >&5
30701 $as_echo "$as_me: Will use gif decoder bundled with the OpenJDK source" >&6;}
30702
30703 fi
30704
30705
30706
30707 ###############################################################################
30708 #
30709 # Check for the zlib library
30710 #
30711
30712
30713 # Check whether --with-zlib was given.
30714 if test "${with_zlib+set}" = set; then :
30715 withval=$with_zlib;
30716 fi
30717
30718
30719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
30720 $as_echo_n "checking for compress in -lz... " >&6; }
30721 if ${ac_cv_lib_z_compress+:} false; then :
30722 $as_echo_n "(cached) " >&6
30723 else
30724 ac_check_lib_save_LIBS=$LIBS
30725 LIBS="-lz $LIBS"
30726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30727 /* end confdefs.h. */
30728
30729 /* Override any GCC internal prototype to avoid an error.
30730 Use char because int might match the return type of a GCC
30731 builtin and then its argument prototype would still apply. */
30732 #ifdef __cplusplus
30733 extern "C"
30734 #endif
30735 char compress ();
30736 int
30737 main ()
30738 {
30739 return compress ();
30740 ;
30741 return 0;
30742 }
30743 _ACEOF
30744 if ac_fn_cxx_try_link "$LINENO"; then :
30745 ac_cv_lib_z_compress=yes
30746 else
30747 ac_cv_lib_z_compress=no
30748 fi
30749 rm -f core conftest.err conftest.$ac_objext \
30750 conftest$ac_exeext conftest.$ac_ext
30751 LIBS=$ac_check_lib_save_LIBS
30752 fi
30753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
30754 $as_echo "$ac_cv_lib_z_compress" >&6; }
30755 if test "x$ac_cv_lib_z_compress" = xyes; then :
30756 ZLIB_FOUND=yes
30757 else
30758 ZLIB_FOUND=no
30759 fi
30760
30761
30762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which zlib to use" >&5
30763 $as_echo_n "checking for which zlib to use... " >&6; }
30764
30765 DEFAULT_ZLIB=bundled
30766 if test "x$OPENJDK_TARGET_OS" = xmacosx; then
30767 #
30768 # On macosx default is system...on others default is
30769 #
30770 DEFAULT_ZLIB=system
30771 fi
30772
30773 if test "x${ZLIB_FOUND}" != "xyes"; then
30774 #
30775 # If we don't find any system...set default to bundled
30828 if ac_fn_cxx_try_link "$LINENO"; then :
30829 has_altzone=yes
30830 else
30831 has_altzone=no
30832 fi
30833 rm -f core conftest.err conftest.$ac_objext \
30834 conftest$ac_exeext conftest.$ac_ext
30835 if test "x$has_altzone" = xyes; then
30836
30837 $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h
30838
30839 fi
30840
30841 ###############################################################################
30842 #
30843 # Check the maths library
30844 #
30845
30846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
30847 $as_echo_n "checking for cos in -lm... " >&6; }
30848 if ${ac_cv_lib_m_cos+:} false; then :
30849 $as_echo_n "(cached) " >&6
30850 else
30851 ac_check_lib_save_LIBS=$LIBS
30852 LIBS="-lm $LIBS"
30853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30854 /* end confdefs.h. */
30855
30856 /* Override any GCC internal prototype to avoid an error.
30857 Use char because int might match the return type of a GCC
30858 builtin and then its argument prototype would still apply. */
30859 #ifdef __cplusplus
30860 extern "C"
30861 #endif
30862 char cos ();
30863 int
30864 main ()
30865 {
30866 return cos ();
30867 ;
30868 return 0;
30869 }
30870 _ACEOF
30871 if ac_fn_cxx_try_link "$LINENO"; then :
30872 ac_cv_lib_m_cos=yes
30873 else
30874 ac_cv_lib_m_cos=no
30875 fi
30876 rm -f core conftest.err conftest.$ac_objext \
30877 conftest$ac_exeext conftest.$ac_ext
30878 LIBS=$ac_check_lib_save_LIBS
30879 fi
30880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
30881 $as_echo "$ac_cv_lib_m_cos" >&6; }
30882 if test "x$ac_cv_lib_m_cos" = xyes; then :
30883 cat >>confdefs.h <<_ACEOF
30884 #define HAVE_LIBM 1
30885 _ACEOF
30886
30887 LIBS="-lm $LIBS"
30888
30889 else
30890
30891 { $as_echo "$as_me:${as_lineno-$LINENO}: Maths library was not found" >&5
30892 $as_echo "$as_me: Maths library was not found" >&6;}
30893
30894 fi
30895
30896
30897
30898 ###############################################################################
30899 #
30900 # Check for libdl.so
30901
30902 save_LIBS="$LIBS"
30903 LIBS=""
30904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
30905 $as_echo_n "checking for dlopen in -ldl... " >&6; }
30906 if ${ac_cv_lib_dl_dlopen+:} false; then :
30907 $as_echo_n "(cached) " >&6
30908 else
30909 ac_check_lib_save_LIBS=$LIBS
30910 LIBS="-ldl $LIBS"
30911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30912 /* end confdefs.h. */
30913
30914 /* Override any GCC internal prototype to avoid an error.
30915 Use char because int might match the return type of a GCC
30916 builtin and then its argument prototype would still apply. */
30917 #ifdef __cplusplus
30918 extern "C"
30919 #endif
30920 char dlopen ();
30921 int
30922 main ()
30923 {
30924 return dlopen ();
30925 ;
30926 return 0;
30927 }
30928 _ACEOF
30929 if ac_fn_cxx_try_link "$LINENO"; then :
30930 ac_cv_lib_dl_dlopen=yes
30931 else
30932 ac_cv_lib_dl_dlopen=no
30933 fi
30934 rm -f core conftest.err conftest.$ac_objext \
30935 conftest$ac_exeext conftest.$ac_ext
30936 LIBS=$ac_check_lib_save_LIBS
30937 fi
30938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
30939 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
30940 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
30941 cat >>confdefs.h <<_ACEOF
30942 #define HAVE_LIBDL 1
30943 _ACEOF
30944
30945 LIBS="-ldl $LIBS"
30946
30947 fi
30948
30949 LIBDL="$LIBS"
30950
30951 LIBS="$save_LIBS"
30952
30953
30954
30955 ###############################################################################
30956 #
30957 # statically link libstdc++ before C++ ABI is stablized on Linux unless
30958 # dynamic build is configured on command line.
30959 #
30960
31564 fi
31565 fi
31566
31567
31568
31569
31570 # Setup use of ccache, if available
31571
31572 # Check whether --enable-ccache was given.
31573 if test "${enable_ccache+set}" = set; then :
31574 enableval=$enable_ccache; ENABLE_CCACHE=${enable_ccache}
31575 else
31576 ENABLE_CCACHE=yes
31577 fi
31578
31579 if test "x$ENABLE_CCACHE" = xyes; then
31580 # Extract the first word of "ccache", so it can be a program name with args.
31581 set dummy ccache; ac_word=$2
31582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31583 $as_echo_n "checking for $ac_word... " >&6; }
31584 if ${ac_cv_path_CCACHE+:} false; then :
31585 $as_echo_n "(cached) " >&6
31586 else
31587 case $CCACHE in
31588 [\\/]* | ?:[\\/]*)
31589 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path.
31590 ;;
31591 *)
31592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31593 for as_dir in $PATH
31594 do
31595 IFS=$as_save_IFS
31596 test -z "$as_dir" && as_dir=.
31597 for ac_exec_ext in '' $ac_executable_extensions; do
31598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31599 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext"
31600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31601 break 2
31602 fi
31603 done
31604 done
31825 "s/'/'\\\\''/g;
31826 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31827 ;; #(
31828 *)
31829 # `set' quotes correctly as required by POSIX, so do not add quotes.
31830 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31831 ;;
31832 esac |
31833 sort
31834 ) |
31835 sed '
31836 /^ac_cv_env_/b end
31837 t clear
31838 :clear
31839 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31840 t end
31841 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31842 :end' >>confcache
31843 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31844 if test -w "$cache_file"; then
31845 if test "x$cache_file" != "x/dev/null"; then
31846 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
31847 $as_echo "$as_me: updating cache $cache_file" >&6;}
31848 if test ! -f "$cache_file" || test -h "$cache_file"; then
31849 cat confcache >"$cache_file"
31850 else
31851 case $cache_file in #(
31852 */* | ?:*)
31853 mv -f confcache "$cache_file"$$ &&
31854 mv -f "$cache_file"$$ "$cache_file" ;; #(
31855 *)
31856 mv -f confcache "$cache_file" ;;
31857 esac
31858 fi
31859 fi
31860 else
31861 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
31862 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31863 fi
31864 fi
31865 rm -f confcache
31866
31867 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31868 # Let make expand exec_prefix.
31869 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31870
31871 DEFS=-DHAVE_CONFIG_H
31872
31873 ac_libobjs=
31874 ac_ltlibobjs=
31875 U=
31876 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31877 # 1. Remove the extension, and $U if already installed.
31878 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31879 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
31880 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
31881 # will be set to the directory where LIBOBJS objects are built.
31882 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31883 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
31884 done
31885 LIBOBJS=$ac_libobjs
31886
31887 LTLIBOBJS=$ac_ltlibobjs
31888
31889
31890
31891 : "${CONFIG_STATUS=./config.status}"
31892 ac_write_fail=0
31893 ac_clean_files_save=$ac_clean_files
31894 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31895 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
31896 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
31897 as_write_fail=0
31898 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
31899 #! $SHELL
31900 # Generated by $as_me.
31901 # Run this file to recreate the current configuration.
31902 # Compiler output produced by configure, useful for debugging
31903 # configure, is in config.log if it exists.
31904
31905 debug=false
31906 ac_cs_recheck=false
31907 ac_cs_silent=false
31908
31909 SHELL=\${CONFIG_SHELL-$SHELL}
31910 export SHELL
31911 _ASEOF
31972 fi
31973
31974 # The user is always right.
31975 if test "${PATH_SEPARATOR+set}" != set; then
31976 PATH_SEPARATOR=:
31977 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31978 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31979 PATH_SEPARATOR=';'
31980 }
31981 fi
31982
31983
31984 # IFS
31985 # We need space, tab and new line, in precisely that order. Quoting is
31986 # there to prevent editors from complaining about space-tab.
31987 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31988 # splitting by setting IFS to empty value.)
31989 IFS=" "" $as_nl"
31990
31991 # Find who we are. Look in the path if we contain no directory separator.
31992 as_myself=
31993 case $0 in #((
31994 *[\\/]* ) as_myself=$0 ;;
31995 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31996 for as_dir in $PATH
31997 do
31998 IFS=$as_save_IFS
31999 test -z "$as_dir" && as_dir=.
32000 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32001 done
32002 IFS=$as_save_IFS
32003
32004 ;;
32005 esac
32006 # We did not find ourselves, most probably we were run as `sh COMMAND'
32007 # in which case we are not to be found in the path.
32008 if test "x$as_myself" = x; then
32009 as_myself=$0
32010 fi
32011 if test ! -f "$as_myself"; then
32012 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32280 # Sed expression to map a string onto a valid CPP name.
32281 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32282
32283 # Sed expression to map a string onto a valid variable name.
32284 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32285
32286
32287 exec 6>&1
32288 ## ----------------------------------- ##
32289 ## Main body of $CONFIG_STATUS script. ##
32290 ## ----------------------------------- ##
32291 _ASEOF
32292 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
32293
32294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32295 # Save the log message, to keep $0 and so on meaningful, and to
32296 # report actual input values of CONFIG_FILES etc. instead of their
32297 # values after options handling.
32298 ac_log="
32299 This file was extended by OpenJDK $as_me jdk8, which was
32300 generated by GNU Autoconf 2.68. Invocation command line was
32301
32302 CONFIG_FILES = $CONFIG_FILES
32303 CONFIG_HEADERS = $CONFIG_HEADERS
32304 CONFIG_LINKS = $CONFIG_LINKS
32305 CONFIG_COMMANDS = $CONFIG_COMMANDS
32306 $ $0 $@
32307
32308 on `(hostname || uname -n) 2>/dev/null | sed 1q`
32309 "
32310
32311 _ACEOF
32312
32313 case $ac_config_files in *"
32314 "*) set x $ac_config_files; shift; ac_config_files=$*;;
32315 esac
32316
32317 case $ac_config_headers in *"
32318 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
32319 esac
32320
32343 --recheck update $as_me by reconfiguring in the same conditions
32344 --file=FILE[:TEMPLATE]
32345 instantiate the configuration file FILE
32346 --header=FILE[:TEMPLATE]
32347 instantiate the configuration header FILE
32348
32349 Configuration files:
32350 $config_files
32351
32352 Configuration headers:
32353 $config_headers
32354
32355 Report bugs to <build-dev@openjdk.java.net>.
32356 OpenJDK home page: <http://openjdk.java.net>."
32357
32358 _ACEOF
32359 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32360 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
32361 ac_cs_version="\\
32362 OpenJDK config.status jdk8
32363 configured by $0, generated by GNU Autoconf 2.68,
32364 with options \\"\$ac_cs_config\\"
32365
32366 Copyright (C) 2010 Free Software Foundation, Inc.
32367 This config.status script is free software; the Free Software Foundation
32368 gives unlimited permission to copy, distribute and modify it."
32369
32370 ac_pwd='$ac_pwd'
32371 srcdir='$srcdir'
32372 AWK='$AWK'
32373 test -n "\$AWK" || AWK=awk
32374 _ACEOF
32375
32376 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32377 # The default lists apply if the user does not specify any file.
32378 ac_need_defaults=:
32379 while test $# != 0
32380 do
32381 case $1 in
32382 --*=?*)
32383 ac_option=`expr "X$1" : 'X\([^=]*\)='`
32472 } >&5
32473
32474 _ACEOF
32475 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32476 _ACEOF
32477
32478 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32479
32480 # Handling of arguments.
32481 for ac_config_target in $ac_config_targets
32482 do
32483 case $ac_config_target in
32484 "$OUTPUT_ROOT/config.h") CONFIG_HEADERS="$CONFIG_HEADERS $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in" ;;
32485 "$OUTPUT_ROOT/spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" ;;
32486 "$OUTPUT_ROOT/hotspot-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" ;;
32487 "$OUTPUT_ROOT/bootcycle-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" ;;
32488 "$OUTPUT_ROOT/compare.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" ;;
32489 "$OUTPUT_ROOT/spec.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in" ;;
32490 "$OUTPUT_ROOT/Makefile") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" ;;
32491
32492 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
32493 esac
32494 done
32495
32496
32497 # If the user did not use the arguments to specify the items to instantiate,
32498 # then the envvar interface is used. Set only those that are not.
32499 # We use the long form for the default assignment because of an extremely
32500 # bizarre bug on SunOS 4.1.3.
32501 if $ac_need_defaults; then
32502 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32503 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32504 fi
32505
32506 # Have a temporary directory for convenience. Make it in the build tree
32507 # simply because there is no reason against having it here, and in addition,
32508 # creating and moving files from /tmp can sometimes cause problems.
32509 # Hook for its removal unless debugging.
32510 # Note that there is a small window in which the directory will not be cleaned:
32511 # after its creation but before its name has been assigned to `$tmp'.
32512 $debug ||
32513 {
32514 tmp= ac_tmp=
32515 trap 'exit_status=$?
32516 : "${ac_tmp:=$tmp}"
32517 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
32518 ' 0
32519 trap 'as_fn_exit 1' 1 2 13 15
32520 }
32521 # Create a (secure) tmp directory for tmp files.
32522
32523 {
32524 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32525 test -d "$tmp"
32526 } ||
32527 {
32528 tmp=./conf$$-$RANDOM
32529 (umask 077 && mkdir "$tmp")
32530 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
32531 ac_tmp=$tmp
32532
32533 # Set up the scripts for CONFIG_FILES section.
32534 # No need to generate them if there are no CONFIG_FILES.
32535 # This happens for instance with `./config.status config.h'.
32536 if test -n "$CONFIG_FILES"; then
32537
32538
32539 ac_cr=`echo X | tr X '\015'`
32540 # On cygwin, bash can eat \r inside `` if the user requested igncr.
32541 # But we know of no other shell where ac_cr would be empty at this
32542 # point, so we can use a bashism as a fallback.
32543 if test "x$ac_cr" = x; then
32544 eval ac_cr=\$\'\\r\'
32545 fi
32546 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32547 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32548 ac_cs_awk_cr='\\r'
32549 else
32550 ac_cs_awk_cr=$ac_cr
32551 fi
32552
32553 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
32554 _ACEOF
32555
32556
32557 {
32558 echo "cat >conf$$subs.awk <<_ACEOF" &&
32559 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32560 echo "_ACEOF"
32561 } >conf$$subs.sh ||
32562 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32563 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
32564 ac_delim='%!_!# '
32565 for ac_last_try in false false false false false :; do
32566 . ./conf$$subs.sh ||
32567 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32568
32569 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32570 if test $ac_delim_n = $ac_delim_num; then
32571 break
32572 elif $ac_last_try; then
32573 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32574 else
32575 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32576 fi
32577 done
32578 rm -f conf$$subs.sh
32579
32580 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32581 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
32582 _ACEOF
32583 sed -n '
32584 h
32585 s/^/S["/; s/!.*/"]=/
32586 p
32587 g
32588 s/^[^!]*!//
32589 :repl
32590 t repl
32591 s/'"$ac_delim"'$//
32592 t delim
32593 :nl
32594 h
32595 s/\(.\{148\}\)..*/\1/
32596 t more1
32597 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32598 p
32599 n
32600 b repl
32601 :more1
32609 s/\(.\{148\}\)..*/\1/
32610 t more2
32611 s/["\\]/\\&/g; s/^/"/; s/$/"/
32612 p
32613 b
32614 :more2
32615 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32616 p
32617 g
32618 s/.\{148\}//
32619 t delim
32620 ' <conf$$subs.awk | sed '
32621 /^[^""]/{
32622 N
32623 s/\n//
32624 }
32625 ' >>$CONFIG_STATUS || ac_write_fail=1
32626 rm -f conf$$subs.awk
32627 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32628 _ACAWK
32629 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
32630 for (key in S) S_is_set[key] = 1
32631 FS = ""
32632
32633 }
32634 {
32635 line = $ 0
32636 nfields = split(line, field, "@")
32637 substed = 0
32638 len = length(field[1])
32639 for (i = 2; i < nfields; i++) {
32640 key = field[i]
32641 keylen = length(key)
32642 if (S_is_set[key]) {
32643 value = S[key]
32644 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32645 len += length(value) + length(field[++i])
32646 substed = 1
32647 } else
32648 len += 1 + keylen
32649 }
32650
32651 print line
32652 }
32653
32654 _ACAWK
32655 _ACEOF
32656 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32657 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32658 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32659 else
32660 cat
32661 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
32662 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
32663 _ACEOF
32664
32665 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
32666 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
32667 # trailing colons and then remove the whole line if VPATH becomes empty
32668 # (actually we leave an empty line to preserve line numbers).
32669 if test "x$srcdir" = x.; then
32670 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
32671 h
32672 s///
32673 s/^/:/
32674 s/[ ]*$/:/
32675 s/:\$(srcdir):/:/g
32676 s/:\${srcdir}:/:/g
32677 s/:@srcdir@:/:/g
32678 s/^:*//
32679 s/:*$//
32680 x
32681 s/\(=[ ]*\).*/\1/
32682 G
32683 s/\n//
32684 s/^[^=]*=[ ]*$//
32685 }'
32686 fi
32687
32688 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32689 fi # test -n "$CONFIG_FILES"
32690
32691 # Set up the scripts for CONFIG_HEADERS section.
32692 # No need to generate them if there are no CONFIG_HEADERS.
32693 # This happens for instance with `./config.status Makefile'.
32694 if test -n "$CONFIG_HEADERS"; then
32695 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
32696 BEGIN {
32697 _ACEOF
32698
32699 # Transform confdefs.h into an awk script `defines.awk', embedded as
32700 # here-document in config.status, that substitutes the proper values into
32701 # config.h.in to produce config.h.
32702
32703 # Create a delimiter string that does not exist in confdefs.h, to ease
32704 # handling of long lines.
32705 ac_delim='%!_!# '
32706 for ac_last_try in false false :; do
32707 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
32708 if test -z "$ac_tt"; then
32709 break
32710 elif $ac_last_try; then
32711 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
32712 else
32713 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32714 fi
32715 done
32716
32717 # For the awk script, D is an array of macro values keyed by name,
32718 # likewise P contains macro parameters if any. Preserve backslash
32719 # newline sequences.
32720
32721 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32722 sed -n '
32723 s/.\{148\}/&'"$ac_delim"'/g
32724 t rset
32725 :rset
32726 s/^[ ]*#[ ]*define[ ][ ]*/ /
32727 t def
32728 d
32789 }
32790 }
32791 }
32792 { print }
32793 _ACAWK
32794 _ACEOF
32795 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32796 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
32797 fi # test -n "$CONFIG_HEADERS"
32798
32799
32800 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
32801 shift
32802 for ac_tag
32803 do
32804 case $ac_tag in
32805 :[FHLC]) ac_mode=$ac_tag; continue;;
32806 esac
32807 case $ac_mode$ac_tag in
32808 :[FHL]*:*);;
32809 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
32810 :[FH]-) ac_tag=-:-;;
32811 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32812 esac
32813 ac_save_IFS=$IFS
32814 IFS=:
32815 set x $ac_tag
32816 IFS=$ac_save_IFS
32817 shift
32818 ac_file=$1
32819 shift
32820
32821 case $ac_mode in
32822 :L) ac_source=$1;;
32823 :[FH])
32824 ac_file_inputs=
32825 for ac_f
32826 do
32827 case $ac_f in
32828 -) ac_f="$ac_tmp/stdin";;
32829 *) # Look for the file first in the build tree, then in the source tree
32830 # (if the path is not absolute). The absolute path cannot be DOS-style,
32831 # because $ac_f cannot contain `:'.
32832 test -f "$ac_f" ||
32833 case $ac_f in
32834 [\\/$]*) false;;
32835 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32836 esac ||
32837 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32838 esac
32839 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32840 as_fn_append ac_file_inputs " '$ac_f'"
32841 done
32842
32843 # Let's still pretend it is `configure' which instantiates (i.e., don't
32844 # use $as_me), people would be surprised to read:
32845 # /* config.h. Generated by config.status. */
32846 configure_input='Generated from '`
32847 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32848 `' by configure.'
32849 if test x"$ac_file" != x-; then
32850 configure_input="$ac_file. $configure_input"
32851 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32852 $as_echo "$as_me: creating $ac_file" >&6;}
32853 fi
32854 # Neutralize special characters interpreted by sed in replacement strings.
32855 case $configure_input in #(
32856 *\&* | *\|* | *\\* )
32857 ac_sed_conf_input=`$as_echo "$configure_input" |
32858 sed 's/[\\\\&|]/\\\\&/g'`;; #(
32859 *) ac_sed_conf_input=$configure_input;;
32860 esac
32861
32862 case $ac_tag in
32863 *:-:* | *:-) cat >"$ac_tmp/stdin" \
32864 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
32865 esac
32866 ;;
32867 esac
32868
32869 ac_dir=`$as_dirname -- "$ac_file" ||
32870 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32871 X"$ac_file" : 'X\(//\)[^/]' \| \
32872 X"$ac_file" : 'X\(//\)$' \| \
32873 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32874 $as_echo X"$ac_file" |
32875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32876 s//\1/
32877 q
32878 }
32879 /^X\(\/\/\)[^/].*/{
32880 s//\1/
32881 q
32882 }
32883 /^X\(\/\/\)$/{
32969 # FIXME: do we really want to maintain this feature?
32970 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32971 ac_sed_extra="$ac_vpsub
32972 $extrasub
32973 _ACEOF
32974 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32975 :t
32976 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32977 s|@configure_input@|$ac_sed_conf_input|;t t
32978 s&@top_builddir@&$ac_top_builddir_sub&;t t
32979 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32980 s&@srcdir@&$ac_srcdir&;t t
32981 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32982 s&@top_srcdir@&$ac_top_srcdir&;t t
32983 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32984 s&@builddir@&$ac_builddir&;t t
32985 s&@abs_builddir@&$ac_abs_builddir&;t t
32986 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32987 $ac_datarootdir_hack
32988 "
32989 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
32990 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32991
32992 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32993 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32994 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
32995 "$ac_tmp/out"`; test -z "$ac_out"; } &&
32996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32997 which seems to be undefined. Please make sure it is defined" >&5
32998 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32999 which seems to be undefined. Please make sure it is defined" >&2;}
33000
33001 rm -f "$ac_tmp/stdin"
33002 case $ac_file in
33003 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
33004 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
33005 esac \
33006 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33007 ;;
33008 :H)
33009 #
33010 # CONFIG_HEADER
33011 #
33012 if test x"$ac_file" != x-; then
33013 {
33014 $as_echo "/* $configure_input */" \
33015 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
33016 } >"$ac_tmp/config.h" \
33017 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33018 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
33019 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
33020 $as_echo "$as_me: $ac_file is unchanged" >&6;}
33021 else
33022 rm -f "$ac_file"
33023 mv "$ac_tmp/config.h" "$ac_file" \
33024 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33025 fi
33026 else
33027 $as_echo "/* $configure_input */" \
33028 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
33029 || as_fn_error $? "could not create -" "$LINENO" 5
33030 fi
33031 ;;
33032
33033
33034 esac
33035
33036 done # for ac_tag
33037
33038
33039 as_fn_exit 0
33040 _ACEOF
33041 ac_clean_files=$ac_clean_files_save
33042
33043 test $ac_write_fail = 0 ||
33044 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33045
33046
33047 # configure is writing to config.log, and then calls config.status.
33048 # config.status does its own redirection, appending to config.log.
|