comparison configure @ 27664:22f1732c7d58

Skip setting variables to empty values in the CPU detection code.
author diego
date Sat, 04 Oct 2008 09:27:46 +0000
parents b2c939f889ff
children b00d2e388fe0
comparison
equal deleted inserted replaced
27663:b1c3057fa54e 27664:22f1732c7d58
1886 1886
1887 ia64) 1887 ia64)
1888 _arch='IA64' 1888 _arch='IA64'
1889 _target_arch='ARCH_IA64 = yes' 1889 _target_arch='ARCH_IA64 = yes'
1890 iproc='ia64' 1890 iproc='ia64'
1891 proc=''
1892 _march=''
1893 _mcpu=''
1894 _optimizing=''
1895 ;; 1891 ;;
1896 1892
1897 x86_64|amd64) 1893 x86_64|amd64)
1898 _arch='X86 X86_64' 1894 _arch='X86 X86_64'
1899 _target_arch='ARCH_X86_64 = yes' 1895 _target_arch='ARCH_X86_64 = yes'
1994 esac 1990 esac
1995 echores "$proc" 1991 echores "$proc"
1996 else 1992 else
1997 proc=v8 1993 proc=v8
1998 fi 1994 fi
1999 _march=''
2000 _mcpu="-mcpu=$proc" 1995 _mcpu="-mcpu=$proc"
2001 _optimizing="$proc" 1996 _optimizing="$proc"
2002 ;; 1997 ;;
2003 1998
2004 sparc64) 1999 sparc64)
2005 _arch='SPARC' 2000 _arch='SPARC'
2006 _target_arch='ARCH_SPARC = yes' 2001 _target_arch='ARCH_SPARC = yes'
2007 _vis='yes' 2002 _vis='yes'
2008 iproc='sparc' 2003 iproc='sparc'
2009 proc='ultrasparc' 2004 proc='ultrasparc'
2010 _march=''
2011 _mcpu="-mcpu=$proc" 2005 _mcpu="-mcpu=$proc"
2012 _optimizing="$proc" 2006 _optimizing="$proc"
2013 ;; 2007 ;;
2014 2008
2015 arm|armv4l|armv5tel) 2009 arm|armv4l|armv5tel)
2016 _arch='ARM ARMV4L' 2010 _arch='ARM ARMV4L'
2017 _target_arch='ARCH_ARMV4L = yes' 2011 _target_arch='ARCH_ARMV4L = yes'
2018 iproc='arm' 2012 iproc='arm'
2019 proc=''
2020 _march=''
2021 _mcpu=''
2022 _optimizing=''
2023 ;; 2013 ;;
2024 2014
2025 sh) 2015 sh)
2026 _arch='SH' 2016 _arch='SH'
2027 _target_arch='ARCH_SH = yes' 2017 _target_arch='ARCH_SH = yes'
2028 iproc='sh' 2018 iproc='sh'
2029 proc=''
2030 _march=''
2031 _mcpu=''
2032 _optimizing=''
2033 ;; 2019 ;;
2034 2020
2035 ppc|ppc64|powerpc|powerpc64) 2021 ppc|ppc64|powerpc|powerpc64)
2036 _arch='POWERPC PPC' 2022 _arch='POWERPC PPC'
2037 _def_dcbzl='#undef HAVE_DCBZL' 2023 _def_dcbzl='#undef HAVE_DCBZL'
2038 _target_arch='ARCH_POWERPC = yes' 2024 _target_arch='ARCH_POWERPC = yes'
2039 iproc='ppc' 2025 iproc='ppc'
2040 proc=''
2041 _march=''
2042 _mcpu=''
2043 _optimizing=''
2044 2026
2045 echocheck "CPU type" 2027 echocheck "CPU type"
2046 case $system_name in 2028 case $system_name in
2047 Linux) 2029 Linux)
2048 proc=`$_cpuinfo | grep 'cpu' | cut -d ':' -f 2 | cut -d ',' -f 1 | cut -b 2- | _head 1` 2030 proc=`$_cpuinfo | grep 'cpu' | cut -d ':' -f 2 | cut -d ',' -f 1 | cut -b 2- | _head 1`
2146 2128
2147 alpha) 2129 alpha)
2148 _arch='ALPHA' 2130 _arch='ALPHA'
2149 _target_arch='ARCH_ALPHA = yes' 2131 _target_arch='ARCH_ALPHA = yes'
2150 iproc='alpha' 2132 iproc='alpha'
2151 _march=''
2152 2133
2153 echocheck "CPU type" 2134 echocheck "CPU type"
2154 cat > $TMPC << EOF 2135 cat > $TMPC << EOF
2155 int main(void) { 2136 int main(void) {
2156 unsigned long ver, mask; 2137 unsigned long ver, mask;
2188 2169
2189 mips) 2170 mips)
2190 _arch='SGI_MIPS' 2171 _arch='SGI_MIPS'
2191 _target_arch='ARCH_SGI_MIPS = yes' 2172 _target_arch='ARCH_SGI_MIPS = yes'
2192 iproc='sgi-mips' 2173 iproc='sgi-mips'
2193 proc=''
2194 _march=''
2195 _mcpu=''
2196 _optimizing=''
2197 2174
2198 if irix ; then 2175 if irix ; then
2199 echocheck "CPU type" 2176 echocheck "CPU type"
2200 proc=`hinv -c processor | grep CPU | cut -d " " -f3` 2177 proc=`hinv -c processor | grep CPU | cut -d " " -f3`
2201 case "`echo $proc`" in 2178 case "`echo $proc`" in
2217 2194
2218 hppa) 2195 hppa)
2219 _arch='PA_RISC' 2196 _arch='PA_RISC'
2220 _target_arch='ARCH_PA_RISC = yes' 2197 _target_arch='ARCH_PA_RISC = yes'
2221 iproc='PA-RISC' 2198 iproc='PA-RISC'
2222 proc=''
2223 _march=''
2224 _mcpu=''
2225 _optimizing=''
2226 ;; 2199 ;;
2227 2200
2228 s390) 2201 s390)
2229 _arch='S390' 2202 _arch='S390'
2230 _target_arch='ARCH_S390 = yes' 2203 _target_arch='ARCH_S390 = yes'
2231 iproc='390' 2204 iproc='390'
2232 proc=''
2233 _march=''
2234 _mcpu=''
2235 _optimizing=''
2236 ;; 2205 ;;
2237 2206
2238 s390x) 2207 s390x)
2239 _arch='S390X' 2208 _arch='S390X'
2240 _target_arch='ARCH_S390X = yes' 2209 _target_arch='ARCH_S390X = yes'
2241 iproc='390x' 2210 iproc='390x'
2242 proc=''
2243 _march=''
2244 _mcpu=''
2245 _optimizing=''
2246 ;; 2211 ;;
2247 2212
2248 vax) 2213 vax)
2249 _arch='VAX' 2214 _arch='VAX'
2250 _target_arch='ARCH_VAX = yes' 2215 _target_arch='ARCH_VAX = yes'
2251 iproc='vax' 2216 iproc='vax'
2252 proc=''
2253 _march=''
2254 _mcpu=''
2255 _optimizing=''
2256 ;; 2217 ;;
2257 2218
2258 xtensa) 2219 xtensa)
2259 _arch='XTENSA' 2220 _arch='XTENSA'
2260 _target_arch='ARCH_XTENSA = yes' 2221 _target_arch='ARCH_XTENSA = yes'
2261 iproc='xtensa' 2222 iproc='xtensa'
2262 proc=''
2263 _march=''
2264 _mcpu=''
2265 _optimizing=''
2266 ;; 2223 ;;
2267 2224
2268 generic) 2225 generic)
2269 _arch='GENERIC' 2226 _arch='GENERIC'
2270 _target_arch='ARCH_GENERIC = yes' 2227 _target_arch='ARCH_GENERIC = yes'
2271 iproc=''
2272 proc=''
2273 _march=''
2274 _mcpu=''
2275 _optimizing=''
2276 ;; 2228 ;;
2277 2229
2278 *) 2230 *)
2279 echo "The architecture of your CPU ($host_arch) is not supported by this configure script" 2231 echo "The architecture of your CPU ($host_arch) is not supported by this configure script"
2280 echo "It seems nobody has ported MPlayer to your OS or CPU type yet." 2232 echo "It seems nobody has ported MPlayer to your OS or CPU type yet."