=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: configure: Add checks for sparc64 and powerpc64.

Alexandre Julliard julliard at winehq.org
Wed Nov 30 14:19:19 CST 2011


Module: wine
Branch: master
Commit: fca621f20b27ca5cfbbd502042444ed52fec59b7
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=fca621f20b27ca5cfbbd502042444ed52fec59b7

Author: André Hentschel <nerv at dawncrow.de>
Date:   Wed Nov 30 01:07:33 2011 +0100

configure: Add checks for sparc64 and powerpc64.

---

 configure    |   52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 configure.ac |    2 ++
 2 files changed, 54 insertions(+), 0 deletions(-)

diff --git a/configure b/configure
index 76c7995..f573540 100755
--- a/configure
+++ b/configure
@@ -14123,6 +14123,32 @@ if test $ac_cv_cpp_def___x86_64__ = yes; then :
   CFLAGS="$CFLAGS -D__x86_64__"
   LINTFLAGS="$LINTFLAGS -D__x86_64__"
 fi ;;
+  *sparc64*)        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc64__" >&5
+$as_echo_n "checking whether we need to define __sparc64__... " >&6; }
+if ${ac_cv_cpp_def___sparc64__+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+#ifndef __sparc64__
+yes
+#endif
+_ACEOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+  $EGREP "yes" >/dev/null 2>&1; then :
+  ac_cv_cpp_def___sparc64__=yes
+else
+  ac_cv_cpp_def___sparc64__=no
+fi
+rm -f conftest*
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc64__" >&5
+$as_echo "$ac_cv_cpp_def___sparc64__" >&6; }
+if test $ac_cv_cpp_def___sparc64__ = yes; then :
+  CFLAGS="$CFLAGS -D__sparc64__"
+  LINTFLAGS="$LINTFLAGS -D__sparc64__"
+fi ;;
   *sparc*)          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
 if ${ac_cv_cpp_def___sparc__+:} false; then :
@@ -14149,6 +14175,32 @@ if test $ac_cv_cpp_def___sparc__ = yes; then :
   CFLAGS="$CFLAGS -D__sparc__"
   LINTFLAGS="$LINTFLAGS -D__sparc__"
 fi ;;
+  *powerpc64*)      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc64__" >&5
+$as_echo_n "checking whether we need to define __powerpc64__... " >&6; }
+if ${ac_cv_cpp_def___powerpc64__+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+#ifndef __powerpc64__
+yes
+#endif
+_ACEOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+  $EGREP "yes" >/dev/null 2>&1; then :
+  ac_cv_cpp_def___powerpc64__=yes
+else
+  ac_cv_cpp_def___powerpc64__=no
+fi
+rm -f conftest*
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc64__" >&5
+$as_echo "$ac_cv_cpp_def___powerpc64__" >&6; }
+if test $ac_cv_cpp_def___powerpc64__ = yes; then :
+  CFLAGS="$CFLAGS -D__powerpc64__"
+  LINTFLAGS="$LINTFLAGS -D__powerpc64__"
+fi ;;
   *powerpc*)        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
 if ${ac_cv_cpp_def___powerpc__+:} false; then :
diff --git a/configure.ac b/configure.ac
index dda1684..d6f5e6a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2314,7 +2314,9 @@ dnl *** check for the need to define platform-specific symbols
 case $host_cpu in
   *i[[3456789]]86*) WINE_CHECK_DEFINE([__i386__]) ;;
   *x86_64*)         WINE_CHECK_DEFINE([__x86_64__]) ;;
+  *sparc64*)        WINE_CHECK_DEFINE([__sparc64__]) ;;
   *sparc*)          WINE_CHECK_DEFINE([__sparc__]) ;;
+  *powerpc64*)      WINE_CHECK_DEFINE([__powerpc64__]) ;;
   *powerpc*)        WINE_CHECK_DEFINE([__powerpc__]) ;;
   *arm*)            WINE_CHECK_DEFINE([__arm__]) ;;
 esac




More information about the wine-cvs mailing list