comparison configure.in @ 172:6954d315aaa8

move version-info into main configure.in, and set it properly. prefix all external symbols in the shared library with pst_ to avoid symbol clashes with other shared libraries.
author Carl Byington <carl@five-ten-sg.com>
date Sat, 04 Apr 2009 16:00:48 -0700
parents 0e1e048716e4
children d9393349ab29
comparison
equal deleted inserted replaced
171:6c1e75bc4cac 172:6954d315aaa8
2 AC_INIT(libpst,0.6.35,carl@five-ten-sg.com) 2 AC_INIT(libpst,0.6.35,carl@five-ten-sg.com)
3 AC_CONFIG_SRCDIR([src/libpst.c]) 3 AC_CONFIG_SRCDIR([src/libpst.c])
4 AC_CONFIG_HEADER([config.h]) 4 AC_CONFIG_HEADER([config.h])
5 AM_INIT_AUTOMAKE 5 AM_INIT_AUTOMAKE
6 AC_CANONICAL_HOST 6 AC_CANONICAL_HOST
7
8 #
9 # 1. Remember that version-info is current:revision:age, and age <= current.
10 # 2. If the source code has changed at all since the last public release,
11 # then increment revision (`c:r:a' becomes `c:r+1:a').
12 # 3. If any interfaces have been added, removed, or changed since the last
13 # update, increment current, and set revision to 0.
14 # 4. If any interfaces have been added since the last public release, then
15 # increment age, since we should be backward compatible with the previous
16 # version.
17 # 5. If any interfaces have been removed or changed since the last public
18 # release, then set age to 0, since we are not backward compatible.
19 # 6. libtool will build libpst.so.x.y.z where the SONAME is libpst.so.x
20 # and x=current-age, y=age, z=revision
21
22 libpst_version_info='2:0:0'
23 AC_SUBST(LIBPST_VERSION_INFO, [$libpst_version_info])
7 24
8 25
9 # Check for win32 26 # Check for win32
10 AC_MSG_CHECKING([for Win32]) 27 AC_MSG_CHECKING([for Win32])
11 case "$host" in 28 case "$host" in
194 if test "$enable_libpst_shared" = "yes"; then 211 if test "$enable_libpst_shared" = "yes"; then
195 enable_shared=yes 212 enable_shared=yes
196 enable_static_tools=no 213 enable_static_tools=no
197 fi 214 fi
198 215
199
200 # needed by STATIC_TOOLS in src/Makefile.am 216 # needed by STATIC_TOOLS in src/Makefile.am
201 AC_SUBST(PST_OBJDIR, [$objdir]) 217 AC_SUBST(PST_OBJDIR, [$objdir])
202 218
203 219
204 # The following lines adds the --enable-static-tools option to configure: 220 # The following lines adds the --enable-static-tools option to configure: