Ticket #20838: gcc44-config.guess.diff
File gcc44-config.guess.diff, 811 bytes (added by howarth@…, 15 years ago) |
---|
-
config.guess
old new 1259 1259 *:Darwin:*:*) 1260 1260 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown 1261 1261 case $UNAME_PROCESSOR in 1262 i386) 1263 eval $set_cc_for_build 1264 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then 1265 sed 's/^ //' << EOF >$dummy.c 1266 #if defined(__LP64__) 1267 main() 1268 { 1269 } 1270 #endif 1271 EOF 1272 if test `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep -c main` = 1 ; then 1273 UNAME_PROCESSOR=x86_64 1274 fi 1275 else 1276 if sysctl -a | grep -c hw.cpu64bit_capable>/dev/null 2>&1 ; then 1277 UNAME_PROCESSOR=x86_64 1278 fi 1279 fi ;; 1262 1280 unknown) UNAME_PROCESSOR=powerpc ;; 1263 1281 esac 1264 1282 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}