[haiku-development] Re: Coordinating porting efforts

  • From: "François Revol" <revol@xxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Fri, 08 Feb 2008 16:44:10 +0100 CET

>
> For autoconf-generated configure scripts and GCC2 I need to pass --
> build=i586-pc-beos, that has it recognized as BeOS.
>
> To start fixing this, first config.guess and config.sub will need to
> be patched to always return a suitable platform triple i586-pc-(beos|
>
> haiku) (in guess) and take appropriate actions (in sub).
> Unfortunately
> many projects maintain local copies of these files in their
> repositories, so having the original fixed at Savannah won't be
> sufficient...

Maybe we can add an uname hack à la SETVER.COM :)))

>
> Now that autoconf works, we should probably grep through any
> configure.
> (in|ac) to find any mention of beos, add haiku where necessary and re
> -
> generate configure.

Yes, usually adding |haiku to the case statements should be enough
though.
For some ported apps I did that already in prevision.

> Regarding your #ifdefs it might be easier to #define the BeOS defines
> when Haiku is recognized rather than changing all #ifdefs. For
> example, in glib I assume we can live with a #define G_OS_BEOS for
> Haiku as long as no special provisions need to be made for Haiku
> apart
> from deciding on available functions and headers.

the Haiku gcc should also #define __BEOS__ regardless IIRC.

François.

Other related posts: