automake
[Top][All Lists]
Advanced

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

AM_CONDITIONAL + AM_COND_IF does not work


From: Marc Wäckerlin
Subject: AM_CONDITIONAL + AM_COND_IF does not work
Date: Mon, 09 Mar 2015 16:06:00 +0100
User-agent: Roundcube Webmail/0.9.5

According to the official documentation(*):
------------------------------------------
Here is an example of how to define a conditional config file:
AM_CONDITIONAL([SHELL_WRAPPER], [test "x$with_wrapper" = xtrue])
AM_COND_IF([SHELL_WRAPPER],
           [AC_CONFIG_FILES([wrapper:wrapper.in])])
------------------------------------------

I try to generically find out, whether examples/makefile.am exists in a project and to automatically use it, if it exists:
------------------------------------------
AM_CONDITIONAL([HAVE_EXAMPLES_DIR], [test -f examples/makefile.am])
AM_COND_IF([HAVE_EXAMPLES_DIR], [AC_CONFIG_FILES([examples/makefile])])
------------------------------------------

But automake fails:
------------------------------------------
configure.ac:27: error: required file 'examples/makefile.in' not found
------------------------------------------

So, what's the problem?

It's nearly the same code as in the example ...



(*) see http://www.gnu.org/software/automake/manual/html_node/Usage-of-Conditionals.html

Thank you
Regards
Marc
--
Marc Wäckerlin




reply via email to

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