nanogui: source tree
Subject:
Re: source tree
From:
"Bradley D. LaRonde" ####@####.####
Date:
15 Dec 1999 22:17:37 -0000
Message-Id: <016c01bf4749$573d19b0$b8119526@ltc.com>
I like autoconf for cross-compile environments, and support is explicitly in
autoconf for that. It's easy to make a site config file that explains the
whole cross-compile environment:
---------
# Brad's config.site for configure
# This is just an example - don't quote me on any of this
CC=mipsel-linux-gcc
CXX=mipsel-linux-gcc
AR=mipsel-linux-ar
RANLIB=mipsel-linux-ranlib
NM=mipsel-linux-nm
ac_cv_path_NM=mipsel-linux-nm
CFLAGS="-msoft-float -s"
CXXFLAGS="-msoft-float -s"
ac_cv_func_setpgrp_void=yes
host=mipsel-linux
prefix=~/mipsel-linux-install
# These are for GNU shellutils
jm_cv_have_proc_uptime=yes
jm_cv_func_working_gnu_strftime=yes
---------
and then say:
export CONFIG_SITE=~/config.site
before running ./configure.
It works great. I used to cringe when I saw an autoconf project, but now
that I've figured out this CONFIG_SITE thing (thanks to help from Jay
Carlson) I prefer them.
Regards,
Brad
----- Original Message -----
From: "Martin Jolicoeur" ####@####.####
To: "Chris Ross" ####@####.#### ####@####.####
Sent: Wednesday, December 15, 1999 4:40 PM
Subject: Re: source tree
> Chris Ross wrote:
>
> > i think the source tree needs to be tidied up abit with
> > a better structure. i am happy to sit down and write
> > Makefile.am and a configure.in so what we can make the
> > source tree easier to compile on yet more os'. one
> > f the reasons being is that i would like to be able to use
> > nanox + X11 on solaris.
>
> Like Greg mentioned, I did a rework of the Makefile structure/source
> tree. This, however, doesn't use the m4/autoconf stuff. I thought about
> using it but found it pretty much overkill for our needs since most of
> the supported platforms in nanogui use cross-compiling (linuxCE people
> with mips, RTEMS people, us here with ARM, ...) Usually this kind of
> mechanism (autoconf) is used to get the configuration of the host it is
> run on, not the target platform ... Maybe I'm wrong, but I don't think
> the autoconf tools suite is designed to support cross-compiling... What
> I did is a configuration mechanism a la linux kernel ...
>
> Regards,
>
> Martin Jolicoeur
> GVT Project
> ####@####.####
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ####@####.####
> For additional commands, e-mail: ####@####.####
>