autoconf
[Top][All Lists]
Advanced

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

Conditional AC_CONFIG_FILES


From: Brian
Subject: Conditional AC_CONFIG_FILES
Date: Mon, 19 Feb 2007 11:53:36 -0700

I *really* want to be able to conditionally specify the files that go into
AC_CONFIG_FILES. By using AC_SUBST, I have been able to modalize the files
that get listed in DIST_SUBDIRS and SUBDIRS. But I want configure itself to
be flexible enough to change its awareness of what it is building.

The reason is that I want to let 3rd parties use our configure script to
develop our plugins. Our plugins are located in the plugins/ folder of our
source tree. I have configure options such as
--enable-plugin-dev=HelloWorld. When this is set, configure doesn't even
recurse into our src/ directory, it goes straight to plugins. But I don't
even want config.status to create those makefiles in the src/ dir. I want to
send out make dist package with our plugin configure options that has only
the stuff they need to modify our HelloWorld plugin and get started.

I've tried something like this:

PDP_SUBDIRS=". tacss/HelloWorld"
AC_CONFIG_FILES([`sh<<EOF
echo ${PDP_SUBDIRS} | sed 's/ /Makefile /'
EOF
`])

To no avail. Any pointers?

Cheers,
Brian

--
int getRandomNumber()
{
       return 4; // chosen by fair dice roll
                      // guaranteed to be random
}


reply via email to

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