File ltrace-ppc64le_configure.patch of Package ltrace

Subject: ppc64le configure files
From: Guy Menanteau <menantea@linux.vnet.ibm.com>

patch the configure files

Signed-off-by: Guy Menanteau <menantea@linux.vnet.ibm.com>
---
 config/autoconf/config.guess |    3 +++
 configure                    |    3 ++-
 configure.ac                 |    3 ++-
 3 files changed, 7 insertions(+), 2 deletions(-)

Index: configure
===================================================================
--- configure.orig
+++ configure
@@ -2552,7 +2552,7 @@ case "${host_cpu}" in
     cris*)		HOST_CPU="cris" ;;
     mips*el)		HOST_CPU="mipsel" ;;
     mips*)		HOST_CPU="mips" ;;
-    powerpc|powerpc64)	HOST_CPU="ppc" ;;
+    powerpc|powerpc64|powerpc64le)	HOST_CPU="ppc" ;;
     sun4u|sparc64)	HOST_CPU="sparc" ;;
     s390x)		HOST_CPU="s390" ;;
     i?86|x86_64)	HOST_CPU="x86" ;;
@@ -11880,6 +11880,7 @@ if test x"$enable_libunwind" = xyes; the
       i?86)               UNWIND_ARCH="x86" ;;
       powerpc)            UNWIND_ARCH="ppc32" ;;
       powerpc64)          UNWIND_ARCH="ppc64" ;;
+      powerpc64le)        UNWIND_ARCH="ppc64" ;;
       mips*)              UNWIND_ARCH="mips" ;;
       *)                  UNWIND_ARCH="${host_cpu}" ;;
   esac
Index: config/autoconf/config.guess
===================================================================
--- config/autoconf/config.guess.orig
+++ config/autoconf/config.guess
@@ -952,6 +952,9 @@ EOF
     ppc64:Linux:*:*)
 	echo powerpc64-unknown-linux-gnu
 	exit ;;
+    ppc64le:Linux:*:*)
+	echo powerpc64le-unknown-linux-gnu
+	exit ;;
     ppc:Linux:*:*)
 	echo powerpc-unknown-linux-gnu
 	exit ;;
Index: configure.ac
===================================================================
--- configure.ac.orig
+++ configure.ac
@@ -42,7 +42,7 @@ case "${host_cpu}" in
     cris*)		HOST_CPU="cris" ;;
     mips*el)		HOST_CPU="mipsel" ;;
     mips*)		HOST_CPU="mips" ;;
-    powerpc|powerpc64)	HOST_CPU="ppc" ;;
+    powerpc|powerpc64|powerpc64le) HOST_CPU="ppc" ;;
     sun4u|sparc64)	HOST_CPU="sparc" ;;
     s390x)		HOST_CPU="s390" ;;
     i?86|x86_64)	HOST_CPU="x86" ;;
@@ -159,6 +159,7 @@ if test x"$enable_libunwind" = xyes; the
       i?86)               UNWIND_ARCH="x86" ;;
       powerpc)            UNWIND_ARCH="ppc32" ;;
       powerpc64)          UNWIND_ARCH="ppc64" ;;
+      powerpc64le)        UNWIND_ARCH="ppc64" ;;
       mips*)              UNWIND_ARCH="mips" ;;
       *)                  UNWIND_ARCH="${host_cpu}" ;;
   esac