autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: managing subdirectories


From: Kai Ludwig
Subject: Re: managing subdirectories
Date: Wed, 8 Oct 2003 10:04:33 +0200
User-agent: KMail/1.4.3

Am Dienstag, 7. Oktober 2003 21:00 schrieb Bill Wendling:
> Also sprach Kai Ludwig:
> }
> } I have a question about managing subdirectories with
> } autoconf/automake.
> }
> } Our project contains several independent packages. For
> } each package we have a subdirectory and each subdirectory
> } has a configure script.
> } >From the top level configure script the user should choose
> } wether s/he wants to compile a specific package or not.
> }
> } e.g.:  ./configure --enable-gui
> }
> } By now (and that solution works with autoconf-2.53 and automake-1.6.3)
> } we use the AC_CONFIG_SUBDIRS macro in the top level configure.in
> } file:
> }
> } if test "x$gui" = xtrue; then
> } AC_CONFIG_SUBDIRS(Utilities GUI)
> } else
> } if test "x$model" = xtrue; then
> } AC_CONFIG_SUBDIRS(Model)
> } else
> } AC_CONFIG_SUBDIRS(Utilities GUI Model)
> } fi
> } fi
> }
> } Trying the same code with autoconf-2.57 and automake-1.7.7 results in the
> } following error when running automake:
> }
> } configure.in:29: error: `Utilities' is already registered with
> } AC_CONFIG_SUBDIRS.
> } /usr/local/src/autoconf/autoconf-2.57/lib/autoconf/status.m4:1073:
> } AC_CONFIG_SUBDIRS is expanded from...
> } configure.in:29: the top level
> }
> } Is there a better/standard solution for our purpose ?
> }
> This is a shot in the dark (and I haven't tested it) but have you tried
> "quoting" the subdirectories above (because they have spaces in their
> names)?
>
> So, something like:
>
>     AC_CONFIG_SUBDIRS([Utilities GUI Module])
>
> or something?

Thanks for your reponse. Unfortunately that did not help. I am
not an expert in writing shell commands, so maybe the mistake is in
the

if....else....

statements above. It seems to me that automake-1.7.7 has a problem
in interpreting them ?

Regards
Kai





reply via email to

[Prev in Thread] Current Thread [Next in Thread]