axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kenneth Chiu <ch...@cs.indiana.edu>
Subject Re: configure.ac
Date Fri, 11 Jun 2004 11:09:06 GMT
The usual practice for something like this is that you write
new macros and put them in a common place, then use some way
to include them.  (There are a number of ways.)

Do 'info aclocal' and look at the sections on macros.

Normally, you don't ship the configure.ac's anyway, so a
little bit of complexity during the autoconf process doesn't
affect the end-user.

Just in case you don't know about already, there is an
on-line autotools book:

    http://sources.redhat.com/autobook/autobook/autobook_toc.html

On Fri, 11 Jun 2004, John Hawkins wrote:

>
>
>
>
> OK, that's a start. I understand why we need a make file for each tree
> (kinda)
>
> However, I still need to change 8 configure.ac files everytime I want to
> port to AIX (or another platform with issues). That's not very portable.
>
> Looking at my original listing I see the following configure files  (minus
> the ones you've just removed)
>
>
> > ./configure.ac                                - the top level
> > ./samples/client/configure.ac                       - samples
> > ./samples/client/testHandler/configure.ac                 - samples
> > ./samples/server/configure.ac                       - samples
> > ./src/server/handlers/global/testhandler1/configure.ac    - handler
> samples or tests?
> > ./src/server/handlers/transport/testhandler2/configure.ac - handlers
> samples or tests?
> > ./src/wcg/configure.ac                              - what is this ?
> > ./src/xml/txpp/lib/configure.ac                     - what is this?
> > ./tests/configure.ac                          - tests
>
> Few observations -
> Why do we have lots of different sample files - Surely we just need one for
> the samples tree
> Samples and/or tests seem be scattered throughout the code base?
>
> I also need to understand why we don't have a more simple structure with
> say a configure file for the following :
> src
> tests
> samples
>
> Alternatively we could have one big tree structure with say
>
> src
> src/samples
> src/tests
>
> then I could have one configure.ac file at the top level?
> If I wanted to build "all" I could or I could pick and choose which I
> wanted.
>
> That would seem more logical to me and far more easy to maintain and port ?
>
> I appreciate the code has "grown up" but I don't think that I'm way out of
> line here am I?
>
> what do people think?
>
>
>
>
> John Hawkins
>
>
>
>
>
>              damitha@opensourc
>              e.lk
>                                                                         To
>              11/06/2004 08:54          "Apache AXIS C Developers List"
>                                        <axis-c-dev@ws.apache.org>
>                                                                         cc
>              Please respond to
>               "Apache AXIS C                                       Subject
>              Developers List"          Re: configure.ac
>
>
>
>
>
>
>
>
>
>
> Hi John,
>    Actuall following file are not needed. I removed them
>    ./samples/server/echoStringHeaderHandler/configure.ac
>   ./samples/server/interoptests/doclitbase/configure.ac
>   ./samples/server/interoptests/doclitgroupB/configure.ac
>
> In other cases they are there, so that beginning from that place Makefiles
> can be generated seperately. For example you can goto samples/server and
> generate configure file there to create all the Makefiles beginning from
> that folder.
>
> damitha
> >
> >
> > Hi Folks,
> >
> > Trying to get the latest code building on AIX.
> >
> > The compiler I'm using is not understanding the CPPFlags but I know what
> > to
> > set them to. My question is - if I change configure.ac in the c directory
> > why are there other configure.ac's in other directories (listed below) ->
> >
> > /home/hawkeye/axis12
> > # find . -name configure.ac -print
> > ./configure.ac
> > ./samples/client/configure.ac
> > ./samples/client/testHandler/configure.ac
> > ./samples/server/configure.ac
> > ./samples/server/echoStringHeaderHandler/configure.ac
> > ./samples/server/interoptests/doclitbase/configure.ac
> > ./samples/server/interoptests/doclitgroupB/configure.ac
> > ./src/server/handlers/global/testhandler1/configure.ac
> > ./src/server/handlers/transport/testhandler2/configure.ac
> > ./src/wcg/configure.ac
> > ./src/xml/txpp/lib/configure.ac
> > ./tests/configure.ac
> >
> > I think what's happening is that when I run build.sh, configure is
> picking
> > up the configure.ac files in the different directories. I don't want to
> > change the configure.ac files for all these directories everytime I want
> > to
> > build on a new platform so, what can we do? Why do we have all these
> > configure.ac files ?  Why not just have the one root configure.ac file
> > that
> > holds the flags for that platform?
> >
> > thanks for any help (Ignorance plays a large part in my questions so bare
> > with me :-)
> >
> > John Hawkins
> >
> >
> >
>
>
>

Mime
View raw message