Add PowerPC processor detection.

This commit is contained in:
Pierre d'Herbemont 2003-07-16 23:37:22 +00:00 committed by Alexandre Julliard
parent 4aaa257086
commit b64b7deb8e
2 changed files with 33 additions and 0 deletions

32
configure vendored
View File

@ -16247,6 +16247,38 @@ echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6
if test $ac_cv_cpp_def___sparc__ = yes; then
CFLAGS="$CFLAGS -D__sparc__"
LINTFLAGS="$LINTFLAGS -D__sparc__"
fi
;;
*powerpc*) echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6
if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#ifndef __powerpc__
yes
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
$EGREP "yes" >/dev/null 2>&1; then
ac_cv_cpp_def___powerpc__=yes
else
ac_cv_cpp_def___powerpc__=no
fi
rm -f conftest*
fi
echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6
if test $ac_cv_cpp_def___powerpc__ = yes; then
CFLAGS="$CFLAGS -D__powerpc__"
LINTFLAGS="$LINTFLAGS -D__powerpc__"
fi
;;
esac

View File

@ -1314,6 +1314,7 @@ case $host_cpu in
*i[[3456789]]86*) WINE_CHECK_DEFINE([__i386__]) ;;
*alpha*) WINE_CHECK_DEFINE([__ALPHA__]) ;;
*sparc*) WINE_CHECK_DEFINE([__sparc__]) ;;
*powerpc*) WINE_CHECK_DEFINE([__powerpc__]) ;;
esac
case $host_vendor in