title: How to write multiple conditions in Makefile.am with "else if"
body: <p>I want to compile my project with autoconf/automake. There are 2 conditions defined in my configure.ac</p>
  
  <pre><code>AM_CONDITIONAL(HAVE_CLIENT, test $enable-client -eq 1)
  AM_CONDITIONAL(HAVE_SERVER, test $enable-server -eq 1)
  </code></pre>
  
  <p>I want to separate _LIBS from these 2 conditions in Makefile.am</p>
  
  <pre><code>if HAVE_CLIENT
  
  libtest_LIBS = \
  
      $(top_builddir)/libclient.la
  
  else if HAVE_SERVER
  
  libtest_LIBS = \
  
      $(top_builddir)/libserver.la
  
  else
  
  libtest_LIBS = 
  
  endif
  </code></pre>
  
  <p>but <code>else if HAVE_SERVER</code> does NOT work.</p>
  
  <p>How to write 'else if' in makefile.am?</p>