Re: how to handle new subdirectories?

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

 



According to Steffen Dettmer on 3/3/2010 4:31 AM:
> I have a new dir with dir/configure.in and added it to
> ./configure.in's AC_CONFIG_SUBDIRS([dir]).

You may want to consider renaming all of those to configure.ac instead.
That has been the recommended practice for several years now.

> In Makefile.am I have
> SUBDIRS=@subdirs@ admin

Have you tried automake conditionals, along the lines of:

SUBDIRS=
if BUILD_SUBDIR
SUBDIRS += subdir
endif
SUBDIRS += admin

so that you are passing literal subdir names to SUBDIRS rather than values
substituted at configure time?  The automake manual has a node on
conditional subdirectories.

-- 
Eric Blake   eblake@xxxxxxxxxx    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux