bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[patch] ncurses 5.3: configure.in cross-tools updates


From: Maciej W. Rozycki
Subject: [patch] ncurses 5.3: configure.in cross-tools updates
Date: Tue, 29 Oct 2002 14:46:05 +0100 (MET)

Hello,

 When doing a cross-compilation, incorrect versions of ld and ar may be
selected.  Here is a patch that uses AC_CHECK_TOOL instead of CF_SUBST for
these programs that makes ${host_alias}-<tool> be checked before trying
other alternatives.  Additionally a small update is included for the
informational message printed when the version of gcc is tested: $CC is
used after the change to let a user know which gcc binary (e.g.
"mipsel-linux-gcc") is being queried.

 Please apply,

  Maciej

-- 
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: address@hidden, PGP key available        +

ncurses-5.3-cross.patch
diff -up --recursive --new-file ncurses-5.3.macro/configure.in 
ncurses-5.3/configure.in
--- ncurses-5.3.macro/configure.in      2002-09-15 00:11:28.000000000 +0000
+++ ncurses-5.3/configure.in    2002-10-19 10:53:19.000000000 +0000
@@ -82,7 +82,7 @@ CF_CFG_DEFAULTS
 AC_PROG_CC
 GCC_VERSION=none
 if test "$GCC" = yes ; then
-       AC_MSG_CHECKING(version of gcc)
+       AC_MSG_CHECKING(version of $CC)
        GCC_VERSION="`${CC} --version|head -1`"
        AC_MSG_RESULT($GCC_VERSION)
 fi
@@ -217,8 +217,8 @@ AC_CHECK_PROGS(MAN, man man_db)
 AC_SUBST(LINT_OPTS)
 
 dnl These are standard among *NIX systems, but not when cross-compiling
-CF_SUBST(loader,LD,ld)
-CF_SUBST(archiver,AR,ar)
+AC_CHECK_TOOL(LD, ld, ld)
+AC_CHECK_TOOL(AR, ar, ar)
 CF_SUBST(archiver options,AR_OPTS,rv)
 
 CF_MAKEFLAGS





reply via email to

[Prev in Thread] Current Thread [Next in Thread]