I want to compile my project with autoconf/automake. There are 2 conditions defined in my configure.ac
AM_CONDITIONAL(HAVE_CLIENT, test $enable-client -eq 1) AM_
As you've discovered, you can't do that. You can do:
libtest_LIBS =
...
if HAVE_CLIENT libtest_LIBS += libclient.la endif if HAVE_SERVER libtest_LIBS += libserver.la endif