netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jan Engelhardt <jengelh@medozas.de>
To: pablo@netfilter.org
Cc: netfilter-devel@vger.kernel.org
Subject: [PATCH 6/9] build: run AC_CANONICAL_HOST only
Date: Sun, 31 Oct 2010 00:07:30 +0200	[thread overview]
Message-ID: <1288476454-18451-7-git-send-email-jengelh@medozas.de> (raw)
In-Reply-To: <1288476454-18451-1-git-send-email-jengelh@medozas.de>

There is no need to call AC_CANONICAL_SYSTEM when only
AC_CANONICAL_HOST is needed. Also, checking for $target is factually
incorrect, since we do not produce object code like a compiler. Use
$host, which specifies the triple/quadruple where the compiled program
is supposed to run.

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
---
 configure.ac |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index b05c7f3..91fd6d7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2,7 +2,7 @@ dnl Process this file with autoconf to create configure.
 
 AC_INIT(libnfnetlink, 1.0.0)
 AC_CONFIG_MACRO_DIR([m4])
-AC_CANONICAL_SYSTEM
+AC_CANONICAL_HOST
 
 AM_INIT_AUTOMAKE([-Wall foreign subdir-objects dist-bzip2 1.6])
 
@@ -11,7 +11,7 @@ AC_EXEEXT
 AM_PROG_LIBTOOL
 AC_SUBST(LIBTOOL_DEPS)
 
-case $target in 
+case "$host" in 
 *-*-linux*) ;;
 *) AC_MSG_ERROR([Linux only, dude!]);;
 esac
-- 
1.7.1


  parent reply	other threads:[~2010-10-30 22:07 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-30 22:07 libnfnetlink: build system cleanup Jan Engelhardt
2010-10-30 22:07 ` [PATCH 1/9] build: use autoconf-suggested naming of files Jan Engelhardt
2010-10-30 22:07 ` [PATCH 2/9] build: use modern call syntax for AC_INIT, AM_INIT_AUTOMAKE Jan Engelhardt
2010-10-30 22:07 ` [PATCH 3/9] build: avoid use of deprecated INCLUDES Jan Engelhardt
2010-10-30 22:07 ` [PATCH 4/9] build: use simpler autoreconf in autogen Jan Engelhardt
2010-10-30 22:07 ` [PATCH 5/9] build: use AC_CONFIG_MACRO_DIR as directed Jan Engelhardt
2010-10-30 22:07 ` Jan Engelhardt [this message]
2010-10-30 22:07 ` [PATCH 7/9] build: remove statements without effect Jan Engelhardt
2010-10-30 22:07 ` [PATCH 8/9] build: remove -fPIC flag Jan Engelhardt
2010-10-30 22:07 ` [PATCH 9/9] Add .gitignore files Jan Engelhardt
2010-11-01 21:28 ` libnfnetlink: build system cleanup Pablo Neira Ayuso

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1288476454-18451-7-git-send-email-jengelh@medozas.de \
    --to=jengelh@medozas.de \
    --cc=netfilter-devel@vger.kernel.org \
    --cc=pablo@netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).