Ignore:
Timestamp:
Apr 28, 2004, 6:58:06 AM (21 years ago)
Author:
bird
Message:

#1040: Joined the GCC 3.3.3 with the trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gcc/fastjar/configure

    • Property cvs2svn:cvs-rev changed from 1.4 to 1.5
    r1393 r1394  
    17991799fi
    18001800
    1801 for ac_hdr in fcntl.h unistd.h sys/param.h stdlib.h
     1801for ac_hdr in fcntl.h unistd.h sys/param.h stdlib.h limits.h
    18021802do
    18031803ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
     
    19091909
    19101910
    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.
     1912echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
     1913echo "configure:1914: checking if mkdir takes one argument" >&5
     1914if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
     1915  echo $ac_n "(cached) $ac_c" 1>&6
    19181916else
    19191917  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
     1931int main() {
     1932mkdir ("foo", 0);
     1933; return 0; }
     1934EOF
     1935if { (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
    19341938else
    19351939  echo "configure: failed program was:" >&5
    19361940  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
     1943fi
     1944rm -f conftest*
     1945fi
     1946
     1947echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
     1948if test $gcc_cv_mkdir_takes_one_arg = yes ; then
     1949   cat >> confdefs.h <<\EOF
     1950#define MKDIR_TAKES_ONE_ARG 1
     1951EOF
     1952
     1953fi
     1954
     1955
     1956echo $ac_n "checking size of char""... $ac_c" 1>&6
     1957echo "configure:1958: checking size of char" >&5
     1958if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
     1959  echo $ac_n "(cached) $ac_c" 1>&6
     1960else
     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
     1969int main() {
     1970switch (0) case 0: case (sizeof (char) == $ac_size):;
     1971; return 0; }
     1972EOF
     1973if { (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
     1976else
     1977  echo "configure: failed program was:" >&5
     1978  cat conftest.$ac_ext >&5
     1979fi
     1980rm -f conftest*
     1981  if test x$ac_cv_sizeof_char != x ; then break; fi
     1982done
     1983
     1984fi
     1985
     1986if test x$ac_cv_sizeof_char = x ; then
     1987  { echo "configure: error: cannot determine a size for char" 1>&2; exit 1; }
    19431988fi
    19441989echo "$ac_t""$ac_cv_sizeof_char" 1>&6
     
    19491994
    19501995echo $ac_n "checking size of short""... $ac_c" 1>&6
    1951 echo "configure:1952: checking size of short" >&5
     1996echo "configure:1997: checking size of short" >&5
    19521997if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
    19531998  echo $ac_n "(cached) $ac_c" 1>&6
    19541999else
    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.
    19582001  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
     2008int main() {
     2009switch (0) case 0: case (sizeof (short) == $ac_size):;
     2010; return 0; }
     2011EOF
     2012if { (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
    19732015else
    19742016  echo "configure: failed program was:" >&5
    19752017  cat conftest.$ac_ext >&5
    1976   rm -fr conftest*
    1977   ac_cv_sizeof_short=0
    1978 fi
    1979 rm -fr conftest*
    1980 fi
    1981 
     2018fi
     2019rm -f conftest*
     2020  if test x$ac_cv_sizeof_short != x ; then break; fi
     2021done
     2022
     2023fi
     2024
     2025if test x$ac_cv_sizeof_short = x ; then
     2026  { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
    19822027fi
    19832028echo "$ac_t""$ac_cv_sizeof_short" 1>&6
     
    19882033
    19892034echo $ac_n "checking size of int""... $ac_c" 1>&6
    1990 echo "configure:1991: checking size of int" >&5
     2035echo "configure:2036: checking size of int" >&5
    19912036if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
    19922037  echo $ac_n "(cached) $ac_c" 1>&6
    19932038else
    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.
    19972040  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
     2047int main() {
     2048switch (0) case 0: case (sizeof (int) == $ac_size):;
     2049; return 0; }
     2050EOF
     2051if { (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
    20122054else
    20132055  echo "configure: failed program was:" >&5
    20142056  cat conftest.$ac_ext >&5
    2015   rm -fr conftest*
    2016   ac_cv_sizeof_int=0
    2017 fi
    2018 rm -fr conftest*
    2019 fi
    2020 
     2057fi
     2058rm -f conftest*
     2059  if test x$ac_cv_sizeof_int != x ; then break; fi
     2060done
     2061
     2062fi
     2063
     2064if test x$ac_cv_sizeof_int = x ; then
     2065  { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
    20212066fi
    20222067echo "$ac_t""$ac_cv_sizeof_int" 1>&6
     
    20272072
    20282073echo $ac_n "checking size of long""... $ac_c" 1>&6
    2029 echo "configure:2030: checking size of long" >&5
     2074echo "configure:2075: checking size of long" >&5
    20302075if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
    20312076  echo $ac_n "(cached) $ac_c" 1>&6
    20322077else
    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.
    20362079  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
     2086int main() {
     2087switch (0) case 0: case (sizeof (long) == $ac_size):;
     2088; return 0; }
     2089EOF
     2090if { (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
    20512093else
    20522094  echo "configure: failed program was:" >&5
    20532095  cat conftest.$ac_ext >&5
    2054   rm -fr conftest*
    2055   ac_cv_sizeof_long=0
    2056 fi
    2057 rm -fr conftest*
    2058 fi
    2059 
     2096fi
     2097rm -f conftest*
     2098  if test x$ac_cv_sizeof_long != x ; then break; fi
     2099done
     2100
     2101fi
     2102
     2103if test x$ac_cv_sizeof_long = x ; then
     2104  { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
    20602105fi
    20612106echo "$ac_t""$ac_cv_sizeof_long" 1>&6
     
    20662111
    20672112echo $ac_n "checking size of long long""... $ac_c" 1>&6
    2068 echo "configure:2069: checking size of long long" >&5
     2113echo "configure:2114: checking size of long long" >&5
    20692114if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
    20702115  echo $ac_n "(cached) $ac_c" 1>&6
    20712116else
    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.
    20752118  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
     2125int main() {
     2126switch (0) case 0: case (sizeof (long long) == $ac_size):;
     2127; return 0; }
     2128EOF
     2129if { (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
    20902132else
    20912133  echo "configure: failed program was:" >&5
    20922134  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 
     2135fi
     2136rm -f conftest*
     2137  if test x$ac_cv_sizeof_long_long != x ; then break; fi
     2138done
     2139
     2140fi
     2141
     2142if test x$ac_cv_sizeof_long_long = x ; then
     2143  { echo "configure: error: cannot determine a size for long long" 1>&2; exit 1; }
    20992144fi
    21002145echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
     
    21052150
    21062151
    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.
     2152echo $ac_n "checking byte ordering""... $ac_c" 1>&6
     2153echo "configure:2154: checking byte ordering" >&5
     2154if eval "test \"`echo '$''{'ac_cv_c_compile_endian'+set}'`\" = set"; then
     2155  echo $ac_n "(cached) $ac_c" 1>&6
     2156else
     2157  ac_cv_c_compile_endian=unknown
     2158
     2159ac_ext=c
     2160# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
     2161ac_cpp='$CPP $CPPFLAGS'
     2162ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
     2163ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     2164cross_compiling=$ac_cv_prog_cc_cross
     2165
    21142166cat > 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>
    21232172#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)) |
    21382182#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};
     2186EOF
     2187if { (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
     2203fi
     2204rm -rf conftest*
     2205ac_ext=c
     2206# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
     2207ac_cpp='$CPP $CPPFLAGS'
     2208ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
     2209ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     2210cross_compiling=$ac_cv_prog_cc_cross
     2211
     2212
     2213fi
     2214
     2215echo "$ac_t""$ac_cv_c_compile_endian" 1>&6
     2216if test $ac_cv_c_compile_endian = unknown; then
     2217  { echo "configure: error: *** unable to determine endianness" 1>&2; exit 1; }
     2218elif test $ac_cv_c_compile_endian = big-endian; then
    21912219  cat >> confdefs.h <<\EOF
    2192 #define WORDS_BIGENDIAN 1
     2220#define WORDS_BIG_ENDIAN 1
    21932221EOF
    21942222
     
    22092237if test "$with_system_zlib" = yes; then
    22102238   echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
    2211 echo "configure:2212: checking for deflate in -lz" >&5
     2239echo "configure:2240: checking for deflate in -lz" >&5
    22122240ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
    22132241if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    22172245LIBS="-lz  $LIBS"
    22182246cat > conftest.$ac_ext <<EOF
    2219 #line 2220 "configure"
     2247#line 2248 "configure"
    22202248#include "confdefs.h"
    22212249/* Override any gcc2 internal prototype to avoid an error.  */
     
    22282256; return 0; }
    22292257EOF
    2230 if { (eval echo configure:2231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2258if { (eval echo configure:2259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    22312259  rm -rf conftest*
    22322260  eval "ac_cv_lib_$ac_lib_var=yes"
     
    22612289
    22622290
     2291
     2292
     2293# Get the version trigger filename from the toplevel
     2294if test "${with_gcc_version_trigger+set}" = set; then
     2295   gcc_version_trigger=$with_gcc_version_trigger
     2296else
     2297   gcc_version_trigger=${srcdir}/version.c
     2298fi
     2299gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
     2300gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
    22632301
    22642302
     
    24272465s%@ZDEPS@%$ZDEPS%g
    24282466s%@ZINCS@%$ZINCS%g
     2467s%@gcc_version@%$gcc_version%g
    24292468
    24302469CEOF
Note: See TracChangeset for help on using the changeset viewer.