Changeset 1394 for trunk/src/gcc/fastjar/configure
- Timestamp:
- Apr 28, 2004, 6:58:06 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gcc/fastjar/configure
-
Property cvs2svn:cvs-rev
changed from
1.4
to1.5
r1393 r1394 1799 1799 fi 1800 1800 1801 for ac_hdr in fcntl.h unistd.h sys/param.h stdlib.h 1801 for ac_hdr in fcntl.h unistd.h sys/param.h stdlib.h limits.h 1802 1802 do 1803 1803 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` … … 1909 1909 1910 1910 1911 echo $ac_n "checking size of char""... $ac_c" 1>&6 1912 echo "configure:1913: checking size of char" >&5 1913 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then 1914 echo $ac_n "(cached) $ac_c" 1>&6 1915 else 1916 if test "$cross_compiling" = yes; then 1917 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 1911 # mkdir takes a single argument on some systems. 1912 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6 1913 echo "configure:1914: checking if mkdir takes one argument" >&5 1914 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then 1915 echo $ac_n "(cached) $ac_c" 1>&6 1918 1916 else 1919 1917 cat > conftest.$ac_ext <<EOF 1920 #line 1921 "configure" 1921 #include "confdefs.h" 1922 #include <stdio.h> 1923 main() 1924 { 1925 FILE *f=fopen("conftestval", "w"); 1926 if (!f) exit(1); 1927 fprintf(f, "%d\n", sizeof(char)); 1928 exit(0); 1929 } 1930 EOF 1931 if { (eval echo configure:1932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1932 then 1933 ac_cv_sizeof_char=`cat conftestval` 1918 #line 1919 "configure" 1919 #include "confdefs.h" 1920 1921 #include <sys/types.h> 1922 #ifdef HAVE_SYS_STAT_H 1923 # include <sys/stat.h> 1924 #endif 1925 #ifdef HAVE_UNISTD_H 1926 # include <unistd.h> 1927 #endif 1928 #ifdef HAVE_DIRECT_H 1929 # include <direct.h> 1930 #endif 1931 int main() { 1932 mkdir ("foo", 0); 1933 ; return 0; } 1934 EOF 1935 if { (eval echo configure:1936: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1936 rm -rf conftest* 1937 gcc_cv_mkdir_takes_one_arg=no 1934 1938 else 1935 1939 echo "configure: failed program was:" >&5 1936 1940 cat conftest.$ac_ext >&5 1937 rm -fr conftest* 1938 ac_cv_sizeof_char=0 1939 fi 1940 rm -fr conftest* 1941 fi 1942 1941 rm -rf conftest* 1942 gcc_cv_mkdir_takes_one_arg=yes 1943 fi 1944 rm -f conftest* 1945 fi 1946 1947 echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6 1948 if test $gcc_cv_mkdir_takes_one_arg = yes ; then 1949 cat >> confdefs.h <<\EOF 1950 #define MKDIR_TAKES_ONE_ARG 1 1951 EOF 1952 1953 fi 1954 1955 1956 echo $ac_n "checking size of char""... $ac_c" 1>&6 1957 echo "configure:1958: checking size of char" >&5 1958 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then 1959 echo $ac_n "(cached) $ac_c" 1>&6 1960 else 1961 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence. 1962 cat > conftest.$ac_ext <<EOF 1963 #line 1964 "configure" 1964 #include "confdefs.h" 1965 #include "confdefs.h" 1966 #include <sys/types.h> 1967 1968 1969 int main() { 1970 switch (0) case 0: case (sizeof (char) == $ac_size):; 1971 ; return 0; } 1972 EOF 1973 if { (eval echo configure:1974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1974 rm -rf conftest* 1975 ac_cv_sizeof_char=$ac_size 1976 else 1977 echo "configure: failed program was:" >&5 1978 cat conftest.$ac_ext >&5 1979 fi 1980 rm -f conftest* 1981 if test x$ac_cv_sizeof_char != x ; then break; fi 1982 done 1983 1984 fi 1985 1986 if test x$ac_cv_sizeof_char = x ; then 1987 { echo "configure: error: cannot determine a size for char" 1>&2; exit 1; } 1943 1988 fi 1944 1989 echo "$ac_t""$ac_cv_sizeof_char" 1>&6 … … 1949 1994 1950 1995 echo $ac_n "checking size of short""... $ac_c" 1>&6 1951 echo "configure:19 52: checking size of short" >&51996 echo "configure:1997: checking size of short" >&5 1952 1997 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then 1953 1998 echo $ac_n "(cached) $ac_c" 1>&6 1954 1999 else 1955 if test "$cross_compiling" = yes; then 1956 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 1957 else 2000 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence. 1958 2001 cat > conftest.$ac_ext <<EOF 1959 #line 1960 "configure" 1960 #include "confdefs.h" 1961 #include <stdio.h> 1962 main() 1963 { 1964 FILE *f=fopen("conftestval", "w"); 1965 if (!f) exit(1); 1966 fprintf(f, "%d\n", sizeof(short)); 1967 exit(0); 1968 } 1969 EOF 1970 if { (eval echo configure:1971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1971 then 1972 ac_cv_sizeof_short=`cat conftestval` 2002 #line 2003 "configure" 2003 #include "confdefs.h" 2004 #include "confdefs.h" 2005 #include <sys/types.h> 2006 2007 2008 int main() { 2009 switch (0) case 0: case (sizeof (short) == $ac_size):; 2010 ; return 0; } 2011 EOF 2012 if { (eval echo configure:2013: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2013 rm -rf conftest* 2014 ac_cv_sizeof_short=$ac_size 1973 2015 else 1974 2016 echo "configure: failed program was:" >&5 1975 2017 cat conftest.$ac_ext >&5 1976 rm -fr conftest* 1977 ac_cv_sizeof_short=0 1978 fi 1979 rm -fr conftest* 1980 fi 1981 2018 fi 2019 rm -f conftest* 2020 if test x$ac_cv_sizeof_short != x ; then break; fi 2021 done 2022 2023 fi 2024 2025 if test x$ac_cv_sizeof_short = x ; then 2026 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; } 1982 2027 fi 1983 2028 echo "$ac_t""$ac_cv_sizeof_short" 1>&6 … … 1988 2033 1989 2034 echo $ac_n "checking size of int""... $ac_c" 1>&6 1990 echo "configure: 1991: checking size of int" >&52035 echo "configure:2036: checking size of int" >&5 1991 2036 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then 1992 2037 echo $ac_n "(cached) $ac_c" 1>&6 1993 2038 else 1994 if test "$cross_compiling" = yes; then 1995 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 1996 else 2039 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence. 1997 2040 cat > conftest.$ac_ext <<EOF 1998 #line 1999 "configure" 1999 #include "confdefs.h" 2000 #include <stdio.h> 2001 main() 2002 { 2003 FILE *f=fopen("conftestval", "w"); 2004 if (!f) exit(1); 2005 fprintf(f, "%d\n", sizeof(int)); 2006 exit(0); 2007 } 2008 EOF 2009 if { (eval echo configure:2010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2010 then 2011 ac_cv_sizeof_int=`cat conftestval` 2041 #line 2042 "configure" 2042 #include "confdefs.h" 2043 #include "confdefs.h" 2044 #include <sys/types.h> 2045 2046 2047 int main() { 2048 switch (0) case 0: case (sizeof (int) == $ac_size):; 2049 ; return 0; } 2050 EOF 2051 if { (eval echo configure:2052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2052 rm -rf conftest* 2053 ac_cv_sizeof_int=$ac_size 2012 2054 else 2013 2055 echo "configure: failed program was:" >&5 2014 2056 cat conftest.$ac_ext >&5 2015 rm -fr conftest* 2016 ac_cv_sizeof_int=0 2017 fi 2018 rm -fr conftest* 2019 fi 2020 2057 fi 2058 rm -f conftest* 2059 if test x$ac_cv_sizeof_int != x ; then break; fi 2060 done 2061 2062 fi 2063 2064 if test x$ac_cv_sizeof_int = x ; then 2065 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; } 2021 2066 fi 2022 2067 echo "$ac_t""$ac_cv_sizeof_int" 1>&6 … … 2027 2072 2028 2073 echo $ac_n "checking size of long""... $ac_c" 1>&6 2029 echo "configure:20 30: checking size of long" >&52074 echo "configure:2075: checking size of long" >&5 2030 2075 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then 2031 2076 echo $ac_n "(cached) $ac_c" 1>&6 2032 2077 else 2033 if test "$cross_compiling" = yes; then 2034 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 2035 else 2078 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence. 2036 2079 cat > conftest.$ac_ext <<EOF 2037 #line 2038 "configure" 2038 #include "confdefs.h" 2039 #include <stdio.h> 2040 main() 2041 { 2042 FILE *f=fopen("conftestval", "w"); 2043 if (!f) exit(1); 2044 fprintf(f, "%d\n", sizeof(long)); 2045 exit(0); 2046 } 2047 EOF 2048 if { (eval echo configure:2049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2049 then 2050 ac_cv_sizeof_long=`cat conftestval` 2080 #line 2081 "configure" 2081 #include "confdefs.h" 2082 #include "confdefs.h" 2083 #include <sys/types.h> 2084 2085 2086 int main() { 2087 switch (0) case 0: case (sizeof (long) == $ac_size):; 2088 ; return 0; } 2089 EOF 2090 if { (eval echo configure:2091: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2091 rm -rf conftest* 2092 ac_cv_sizeof_long=$ac_size 2051 2093 else 2052 2094 echo "configure: failed program was:" >&5 2053 2095 cat conftest.$ac_ext >&5 2054 rm -fr conftest* 2055 ac_cv_sizeof_long=0 2056 fi 2057 rm -fr conftest* 2058 fi 2059 2096 fi 2097 rm -f conftest* 2098 if test x$ac_cv_sizeof_long != x ; then break; fi 2099 done 2100 2101 fi 2102 2103 if test x$ac_cv_sizeof_long = x ; then 2104 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; } 2060 2105 fi 2061 2106 echo "$ac_t""$ac_cv_sizeof_long" 1>&6 … … 2066 2111 2067 2112 echo $ac_n "checking size of long long""... $ac_c" 1>&6 2068 echo "configure:2 069: checking size of long long" >&52113 echo "configure:2114: checking size of long long" >&5 2069 2114 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then 2070 2115 echo $ac_n "(cached) $ac_c" 1>&6 2071 2116 else 2072 if test "$cross_compiling" = yes; then 2073 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 2074 else 2117 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence. 2075 2118 cat > conftest.$ac_ext <<EOF 2076 #line 2077 "configure" 2077 #include "confdefs.h" 2078 #include <stdio.h> 2079 main() 2080 { 2081 FILE *f=fopen("conftestval", "w"); 2082 if (!f) exit(1); 2083 fprintf(f, "%d\n", sizeof(long long)); 2084 exit(0); 2085 } 2086 EOF 2087 if { (eval echo configure:2088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2088 then 2089 ac_cv_sizeof_long_long=`cat conftestval` 2119 #line 2120 "configure" 2120 #include "confdefs.h" 2121 #include "confdefs.h" 2122 #include <sys/types.h> 2123 2124 2125 int main() { 2126 switch (0) case 0: case (sizeof (long long) == $ac_size):; 2127 ; return 0; } 2128 EOF 2129 if { (eval echo configure:2130: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2130 rm -rf conftest* 2131 ac_cv_sizeof_long_long=$ac_size 2090 2132 else 2091 2133 echo "configure: failed program was:" >&5 2092 2134 cat conftest.$ac_ext >&5 2093 rm -fr conftest* 2094 ac_cv_sizeof_long_long=0 2095 fi 2096 rm -fr conftest* 2097 fi 2098 2135 fi 2136 rm -f conftest* 2137 if test x$ac_cv_sizeof_long_long != x ; then break; fi 2138 done 2139 2140 fi 2141 2142 if test x$ac_cv_sizeof_long_long = x ; then 2143 { echo "configure: error: cannot determine a size for long long" 1>&2; exit 1; } 2099 2144 fi 2100 2145 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 … … 2105 2150 2106 2151 2107 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 2108 echo "configure:2109: checking whether byte ordering is bigendian" >&5 2109 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then 2110 echo $ac_n "(cached) $ac_c" 1>&6 2111 else 2112 ac_cv_c_bigendian=unknown 2113 # See if sys/param.h defines the BYTE_ORDER macro. 2152 echo $ac_n "checking byte ordering""... $ac_c" 1>&6 2153 echo "configure:2154: checking byte ordering" >&5 2154 if eval "test \"`echo '$''{'ac_cv_c_compile_endian'+set}'`\" = set"; then 2155 echo $ac_n "(cached) $ac_c" 1>&6 2156 else 2157 ac_cv_c_compile_endian=unknown 2158 2159 ac_ext=c 2160 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 2161 ac_cpp='$CPP $CPPFLAGS' 2162 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 2163 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 2164 cross_compiling=$ac_cv_prog_cc_cross 2165 2114 2166 cat > conftest.$ac_ext <<EOF 2115 #line 2116 "configure" 2116 #include "confdefs.h" 2117 #include <sys/types.h> 2118 #include <sys/param.h> 2119 int main() { 2120 2121 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 2122 bogus endian macros 2167 #line 2168 "configure" 2168 #include "confdefs.h" 2169 2170 #ifdef HAVE_LIMITS_H 2171 # include <limits.h> 2123 2172 #endif 2124 ; return 0; } 2125 EOF 2126 if { (eval echo configure:2127: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2127 rm -rf conftest* 2128 # It does; now see whether it defined to BIG_ENDIAN or not. 2129 cat > conftest.$ac_ext <<EOF 2130 #line 2131 "configure" 2131 #include "confdefs.h" 2132 #include <sys/types.h> 2133 #include <sys/param.h> 2134 int main() { 2135 2136 #if BYTE_ORDER != BIG_ENDIAN 2137 not big endian 2173 /* This structure must have no internal padding. */ 2174 struct { 2175 char prefix[sizeof "\nendian:" - 1]; 2176 short word; 2177 char postfix[2]; 2178 } tester = { 2179 "\nendian:", 2180 #if SIZEOF_SHORT == 4 2181 ('A' << (CHAR_BIT * 3)) | ('B' << (CHAR_BIT * 2)) | 2138 2182 #endif 2139 ; return 0; } 2140 EOF 2141 if { (eval echo configure:2142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2142 rm -rf conftest* 2143 ac_cv_c_bigendian=yes 2144 else 2145 echo "configure: failed program was:" >&5 2146 cat conftest.$ac_ext >&5 2147 rm -rf conftest* 2148 ac_cv_c_bigendian=no 2149 fi 2150 rm -f conftest* 2151 else 2152 echo "configure: failed program was:" >&5 2153 cat conftest.$ac_ext >&5 2154 fi 2155 rm -f conftest* 2156 if test $ac_cv_c_bigendian = unknown; then 2157 if test "$cross_compiling" = yes; then 2158 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 2159 else 2160 cat > conftest.$ac_ext <<EOF 2161 #line 2162 "configure" 2162 #include "confdefs.h" 2163 main () { 2164 /* Are we little or big endian? From Harbison&Steele. */ 2165 union 2166 { 2167 long l; 2168 char c[sizeof (long)]; 2169 } u; 2170 u.l = 1; 2171 exit (u.c[sizeof (long) - 1] == 1); 2172 } 2173 EOF 2174 if { (eval echo configure:2175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2175 then 2176 ac_cv_c_bigendian=no 2177 else 2178 echo "configure: failed program was:" >&5 2179 cat conftest.$ac_ext >&5 2180 rm -fr conftest* 2181 ac_cv_c_bigendian=yes 2182 fi 2183 rm -fr conftest* 2184 fi 2185 2186 fi 2187 fi 2188 2189 echo "$ac_t""$ac_cv_c_bigendian" 1>&6 2190 if test $ac_cv_c_bigendian = yes; then 2183 ('A' << CHAR_BIT) | 'B', 2184 'X', '\n' 2185 }; 2186 EOF 2187 if { (eval echo configure:2188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2188 od -c conftest.o | 2189 sed 's/^[0-7]*[ ]*/ / 2190 s/\*/./g 2191 s/ \\n/*/g 2192 s/ [0-9][0-9][0-9]/./g 2193 s/ \\[^ ]/./g' | 2194 tr -d ' 2195 ' | tr -s '*' ' 2196 ' | fold | sed '$a\ 2197 ' > conftest.dmp 2198 if grep 'endian:AB' conftest.dmp >/dev/null 2>&1; then 2199 ac_cv_c_compile_endian=big-endian 2200 elif grep 'endian:BA' conftest.dmp >/dev/null 2>&1; then 2201 ac_cv_c_compile_endian=little-endian 2202 fi 2203 fi 2204 rm -rf conftest* 2205 ac_ext=c 2206 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 2207 ac_cpp='$CPP $CPPFLAGS' 2208 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 2209 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 2210 cross_compiling=$ac_cv_prog_cc_cross 2211 2212 2213 fi 2214 2215 echo "$ac_t""$ac_cv_c_compile_endian" 1>&6 2216 if test $ac_cv_c_compile_endian = unknown; then 2217 { echo "configure: error: *** unable to determine endianness" 1>&2; exit 1; } 2218 elif test $ac_cv_c_compile_endian = big-endian; then 2191 2219 cat >> confdefs.h <<\EOF 2192 #define WORDS_BIG ENDIAN 12220 #define WORDS_BIG_ENDIAN 1 2193 2221 EOF 2194 2222 … … 2209 2237 if test "$with_system_zlib" = yes; then 2210 2238 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 2211 echo "configure:22 12: checking for deflate in -lz" >&52239 echo "configure:2240: checking for deflate in -lz" >&5 2212 2240 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` 2213 2241 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 2217 2245 LIBS="-lz $LIBS" 2218 2246 cat > conftest.$ac_ext <<EOF 2219 #line 22 20"configure"2247 #line 2248 "configure" 2220 2248 #include "confdefs.h" 2221 2249 /* Override any gcc2 internal prototype to avoid an error. */ … … 2228 2256 ; return 0; } 2229 2257 EOF 2230 if { (eval echo configure:22 31: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2258 if { (eval echo configure:2259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2231 2259 rm -rf conftest* 2232 2260 eval "ac_cv_lib_$ac_lib_var=yes" … … 2261 2289 2262 2290 2291 2292 2293 # Get the version trigger filename from the toplevel 2294 if test "${with_gcc_version_trigger+set}" = set; then 2295 gcc_version_trigger=$with_gcc_version_trigger 2296 else 2297 gcc_version_trigger=${srcdir}/version.c 2298 fi 2299 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'` 2300 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'` 2263 2301 2264 2302 … … 2427 2465 s%@ZDEPS@%$ZDEPS%g 2428 2466 s%@ZINCS@%$ZINCS%g 2467 s%@gcc_version@%$gcc_version%g 2429 2468 2430 2469 CEOF -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.