Fix detection of POWER architecture in c_check.
authorSébastien Villemot <sebastien@debian.org>
Mon, 9 Nov 2015 17:36:04 +0000 (18:36 +0100)
committerSébastien Villemot <sebastien@debian.org>
Mon, 9 Nov 2015 17:36:04 +0000 (18:36 +0100)
This is necessary to avoid the false detection of a cross-compiling
environment.

c_check

diff --git a/c_check b/c_check
index d694e74..bcf4c2c 100644 (file)
--- a/c_check
+++ b/c_check
@@ -6,6 +6,7 @@ $hostarch = `uname -m | sed -e s/i.86/x86/`;chop($hostarch);
 $hostarch = "x86_64" if ($hostarch eq "amd64");
 $hostarch = "arm" if ($hostarch =~ /^arm.*/);
 $hostarch = "arm64" if ($hostarch eq "aarch64");
+$hostarch = "power" if ($hostarch =~ /^(powerpc|ppc).*/);
 
 $binary = $ENV{"BINARY"};