title: How to define shared library major version in autoconf?
body: <p>I use autoconf/automake/libtool to build a shared library. I want to pass major number of library version to shared library soname.</p>
  
  <p>I have the following declaration in configure.ac:</p>
  
  <pre><code>AC_INIT([libabc], [1.1.0])
  </code></pre>
  
  <p>And the following Makefile.am:</p>
  
  <pre><code>AM_CPPFLAGS              = -I$(top_srcdir)/include -Wall -Wextra
  LDADD                    = libabc.la
  
  lib_LTLIBRARIES          = libabc.la
  nodist_libabc_la_SOURCES = $(top_srcdir)/config.h
  libabc_la_SOURCES        = $(top_srcdir)/src/abc.c
  </code></pre>
  
  <p>I am fine to have same version for configure script, sources and shared library soname. I can use VERSION or PACKAGE_VERSION defined in auto-generated config.h in sources, but this does not affect soname, which is always libabc.so.0.</p>
  
  <p>Is there a way to enforce libtool to use my major version from AC_INIT directive? If not, what is the preferred way to define major/minor number?</p>