]> granicus.if.org Git - psmisc/commitdiff
use AC_CANONICAL_HOST
authorMike Frysinger <vapier@gentoo.org>
Tue, 19 Feb 2013 19:44:50 +0000 (14:44 -0500)
committerCraig Small <csmall@enc.com.au>
Thu, 21 Feb 2013 11:45:32 +0000 (22:45 +1100)
--host is used for the system where the compiled code will run.
--target is not the correct system to look that up.
http://www.gnu.org/software/autoconf/manual/html_node/Manual-Configuration.html#Manual-Configuration

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Craig Small <csmall@enc.com.au>
configure.ac

index 9df639d637dbb1c06535e7c4e04a06c23c08968e..56fa4857804b9825ae63d57f83bb9fa804d2a524 100644 (file)
@@ -5,7 +5,7 @@ AC_INIT([psmisc],[22.20])
 AC_CONFIG_SRCDIR([src/comm.h])
 AC_CONFIG_HEADER([config.h])
 AC_CONFIG_AUX_DIR([config])
-AC_CANONICAL_TARGET
+AC_CANONICAL_HOST
 AM_INIT_AUTOMAKE([1.10])
 AC_LANG([C])
 
@@ -118,7 +118,7 @@ AC_CHECK_MEMBERS([struct pt_regs.uregs],[],[], [#include <asm/ptrace.h>])
 AC_CHECK_MEMBERS([struct pt_regs.regs,
                   struct pt_regs.cp0_status],[],[], [#include <asm/ptrace.h>])
 
-case ${target_os} in
+case ${host_os} in
   gnu*)
     want_fuser=no
     ;;