[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
2.52, current: Don't set program_prefix when target = host
From: |
Maciej W. Rozycki |
Subject: |
2.52, current: Don't set program_prefix when target = host |
Date: |
Mon, 19 Nov 2001 16:32:46 +0100 (MET) |
Hello,
Autoconf incorrectly sets "program_prefix" to "${target_alias}-" whenever
"target_alias" is specified, even if it's the same as "host_alias" (which
means binaries to be built will not be cross-tools). Here is a fix.
For current the patch has to be applied to lib/autoconf/general.m4.
2001-11-19 Maciej W. Rozycki <address@hidden>
* lib/autoconf/general.m4 (AC_CANONICAL_HOST): Don't set
program_prefix if target_alias equals host_alias.
Maciej
--
+ Maciej W. Rozycki, Technical University of Gdansk, Poland +
+--------------------------------------------------------------+
+ e-mail: address@hidden, PGP key available +
autoconf-2.52-target_prefix.patch
diff -up --recursive --new-file autoconf-2.52.macro/acgeneral.m4
autoconf-2.52/acgeneral.m4
--- autoconf-2.52.macro/acgeneral.m4 Wed Jul 4 15:05:43 2001
+++ autoconf-2.52/acgeneral.m4 Sun Nov 18 15:27:47 2001
@@ -1774,7 +1774,7 @@ _AC_CANONICAL_SPLIT([target])
# The aliases save the names the user supplied, while $host etc.
# will get canonicalized.
-test -n "$target_alias" &&
+test -n "$target_alias" && test "x$target_alias" != "x$host_alias" &&
test "$program_prefix$program_suffix$program_transform_name" = \
NONENONEs,x,x, &&
program_prefix=${target_alias}-[]dnl
- 2.52, current: Don't set program_prefix when target = host,
Maciej W. Rozycki <=