【发布时间】:2011-11-09 02:01:53
【问题描述】:
我想用 autoconf/automake 编译我的项目。我的 configure.ac 中定义了 2 个条件
AM_CONDITIONAL(HAVE_CLIENT, test $enable-client -eq 1)
AM_CONDITIONAL(HAVE_SERVER, test $enable-server -eq 1)
我想在 Makefile.am 中将 _LIBS 与这两个条件分开
if HAVE_CLIENT
libtest_LIBS = \
$(top_builddir)/libclient.la
else if HAVE_SERVER
libtest_LIBS = \
$(top_builddir)/libserver.la
else
libtest_LIBS =
endif
但是else if HAVE_SERVER 不起作用。
如何在 makefile.am 中写“else if”?
【问题讨论】:
标签: automake