[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
AC_CONFIG_SUBDIRS and subdirs
From: |
Ralf Corsepius |
Subject: |
AC_CONFIG_SUBDIRS and subdirs |
Date: |
06 Mar 2002 07:56:31 +0100 |
Hi,
I think, we've had this issue, before ;):
autoconf-cvs unconditionally appends AC_CONFIG_SUBDIRS to subdirs.
This prevents using @subdirs@ rsp. ${subdirs} to denote subdirectories
which only are optionally/conditionally present and contradicts to the
handling of config-subdirs at other places in autoconf.
Eg. if using a Makefile.am similar to this:
SUBDIRS = src @subdirs@
=> All AC_CONFIG_SUBDIRS have to be present for this Makefile.am to be
functional.
Therefore, I'd recommend to append a subdir to $subdirs in
AC_CONFIG_SUBDIRS only if a subdir can be found inside of the
source-directory (Patch enclosed below).
Alternatively, it should be clearly documented that that
AC_CONFIG_SUBDIRS does not support conditionally present subdirs and
users are supposed to check for presence of directories themselves.
(Which, IMHO, would contradict the intention of current autoconf's
documentation on AC_CONFIG_SUBDIRS).
Ralf
autoconf-rc-20020306-1.diff
Description: Text document
- AC_CONFIG_SUBDIRS and subdirs,
Ralf Corsepius <=