Re: Cross Compiling RCS
Derek McEachern <[email protected]> Tue, 4 Jun 2013 10:51:29 -0500
| Newsgroups | gmane.comp.gnu.rcs |
|---|---|
| Message-ID | <CAMsdCHxhCLsKJjc=UzYtmBvBGCBw-0Sy=kuJLju5oaN3dh-BOw@mail.gmail.com> |
--20cf3074d51227680404de560f4f Content-Type: text/plain; charset=UTF-8 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=/opt/rcs --host=i386-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. configure:4364: checking if /opt/rcs/bin/diff works like GNU diff configure:4383: result: no configure:4398: checking if gdiff works like GNU diff configure:4417: result: no configure:4431: checking if rdiff works like GNU diff configure:4450: result: no configure:4464: checking if diff works like GNU diff configure:4483: result: yes configure:4501: checking for diff configure:4519: found /usr/bin/diff configure:4532: result: /usr/bin/diff configure:4558: checking diff success status configure:4568: result: 0 configure:4577: checking diff failure status configure:4587: result: 1 configure:4596: checking diff trouble status configure:4606: result: 2 configure:4617: checking diff options for RCS configure:4633: result: -an configure:4642: checking if diff understands --label configure:4668: result: yes 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. --20cf3074d51227680404de560f4f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div><div><div><div><div><br></div>The configure and compi= le worked just fine.<br><br>The only problem I still have is that it is doi= ng the check for the sane diff. <br><br></div>The situation I have is that = I needed to cross compile diff utils to bundle with rcs and I plan on runni= ng diff utils and rcs out of /opt/rcs.<br> </div>./configure --prefix=3D/opt/rcs --host=3Di386-pc-solaris2.10<br><br><= /div>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 solar= is binary on a windows machine. It then finds /usr/bin/diff and it's sa= ne so it uses this.<br> <br>However, on the target platform /usr/bin/diff is not gnu diff, it's= Solaris diff so it doesn't work as expected.<br><br></div><div><br>con= figure:4364: checking if /opt/rcs/bin/diff works like GNU diff<br>configure= :4383: result: no<br> configure:4398: checking if gdiff works like GNU diff<br>configure:4417: re= sult: no<br>configure:4431: checking if rdiff works like GNU diff<br>config= ure:4450: result: no<br>configure:4464: checking if diff works like GNU dif= f<br> configure:4483: result: yes<br>configure:4501: checking for diff<br>configu= re:4519: found /usr/bin/diff<br>configure:4532: result: /usr/bin/diff<br>co= nfigure:4558: checking diff success status<br>configure:4568: result: 0<br> configure:4577: checking diff failure status<br>configure:4587: result: 1<b= r>configure:4596: checking diff trouble status<br>configure:4606: result: 2= <br>configure:4617: checking diff options for RCS<br>configure:4633: result= : -an<br> configure:4642: checking if diff understands --label<br>configure:4668: res= ult: yes<br><br><div><div><br></div><div>I originally worked around this pr= oblem by modifying <a href=3D"http://configure.ac">configure.ac</a> so that= in the case of a cross compile, if DIFF and DIFF2 environment variables we= re set, assume that the user knows what they are doing.<br> </div><div><div><div><br><div class=3D"gmail_extra"><br></div></div></div><= /div></div></div></div> --20cf3074d51227680404de560f4f--