diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2010-10-30 23:25:19 +0200 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2010-10-30 23:45:16 +0200 |
commit | 2b4a96fd3549161dc37f42357a36483fbe0b3995 (patch) | |
tree | e16a3ef500e55ba95cf2ea7ab5dd57d4d4a94e38 /configure.ac | |
parent | 332e4e2f14c93b59608c3fe53b22ce054b3f3e20 (diff) |
build: run AC_CANONICAL_HOST only
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>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | 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 |