Re: Cross Compiling RCS

Thien-Thi Nguyen <[email protected]> Sat, 02 Aug 2014 06:43:49 +0200
Newsgroups gmane.comp.gnu.rcs
Message-ID <[email protected]>
--=-=-=
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

() Derek McEachern <[email protected]>
() Tue, 4 Jun 2013 10:51:29 -0500

   The configure and compile worked just fine.

   The only problem I still have is that it is doing the check
   for the sane diff.

   The situation I have is that I needed to cross compile diff
   utils to bundle with rcs and I plan on running diff utils
   and rcs out of /opt/rcs.  ./configure --prefix=3D/opt/rcs
   --host=3Di386-pc-solaris2.10

   I have set the environment variables DIFF and DIFF3 and
   when it checks DIFF it turns out it doesn't work because
   /opt/rcs/bin/diff is a solaris binary on a windows
   machine. It then finds /usr/bin/diff and it's sane so it
   uses this.

   However, on the target platform /usr/bin/diff is not gnu
   diff, it's Solaris diff so it doesn't work as expected.

   [output from ./configure run]

   I originally worked around this problem by modifying
   configure.ac so that in the case of a cross compile, if
   DIFF and DIFF2 environment variables were set, assume that
   the user knows what they are doing.

I have just installed a change to configure.ac that attempts
to add support for what you describe above:

 http://git.sv.gnu.org/cgit/rcs.git/commit/?h=3Dp&id=3D0aef53c

If you'd like, i can generate and send you a new configure
script for testing.  Alternatively, 5.9.3 will be out shortly.

=2D-=20
Thien-Thi Nguyen
   GPG key: 4C807502
   (if you're human and you know it)
      read my lisp: (responsep (questions 'technical)
                               (not (via 'mailing-list)))
                     =3D> nil

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlPcbIgACgkQZwMiJEyAdQLJkQCfZp1q11vg6vObJhpFi6UeIQqg
O5AAoMuDyULPtBrIEUc8B8GayZAMBvgN
=fxWm
-----END PGP SIGNATURE-----
--=-=-=--