Mercurial > libpst
comparison configure.in @ 198:7c60d6d1c681
decode more recurrence mapi elements
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Tue, 12 May 2009 19:34:49 -0700 |
parents | ffd1503a7530 |
children | e3a46f66332b |
comparison
equal
deleted
inserted
replaced
197:07ceebd115ce | 198:7c60d6d1c681 |
---|---|
17 # 5. If any interfaces have been removed or changed since the last public | 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. | 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 | 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 | 20 # and x=current-age, y=age, z=revision |
21 | 21 |
22 libpst_version_info='3:0:1' | 22 libpst_version_info='4:0:0' |
23 AC_SUBST(LIBPST_VERSION_INFO, [$libpst_version_info]) | 23 AC_SUBST(LIBPST_VERSION_INFO, [$libpst_version_info]) |
24 libpst_so_major='2' | 24 libpst_so_major='4' |
25 AC_SUBST(LIBPST_SO_MAJOR, [$libpst_so_major]) | 25 AC_SUBST(LIBPST_SO_MAJOR, [$libpst_so_major]) |
26 | 26 |
27 # libpst | 27 # libpst |
28 # version soname so library name | 28 # version soname so library name |
29 # 0.6.35 libpst.so.2 libpst.so.2.0.0 | 29 # 0.6.35 libpst.so.2 libpst.so.2.0.0 |
30 # 0.6.37 libpst.so.2 libpst.so.2.1.0 | 30 # 0.6.37 libpst.so.2 libpst.so.2.1.0 |
31 # 0.6.38 libpst.so.2 libpst.so.2.1.0 | 31 # 0.6.38 libpst.so.2 libpst.so.2.1.0 |
32 | 32 |
33 | |
34 # check for boost | |
35 AX_PYTHON | |
36 AX_BOOST_PYTHON | |
37 if test "$ax_python_bin" = "no"; then | |
38 AC_MSG_ERROR(python binary not found) | |
39 fi | |
40 | |
41 AC_SUBST(PYTHON_VERSION, [$ax_python_bin]) | |
42 | 33 |
43 | 34 |
44 # Check for win32 | 35 # Check for win32 |
45 AC_MSG_CHECKING([for Win32]) | 36 AC_MSG_CHECKING([for Win32]) |
46 case "$host" in | 37 case "$host" in |
153 AC_STRUCT_TM | 144 AC_STRUCT_TM |
154 | 145 |
155 | 146 |
156 # Checks for library functions. | 147 # Checks for library functions. |
157 AC_FUNC_FSEEKO | 148 AC_FUNC_FSEEKO |
149 AC_FUNC_STAT | |
158 AC_FUNC_LSTAT | 150 AC_FUNC_LSTAT |
159 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK | 151 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK |
160 if test "$cross_compiling" != "yes"; then | 152 if test "$cross_compiling" != "yes"; then |
161 AC_FUNC_MALLOC | 153 AC_FUNC_MALLOC |
162 AC_FUNC_MKTIME | 154 AC_FUNC_MKTIME |
258 AC_MSG_RESULT([$enable_static_tools]) | 250 AC_MSG_RESULT([$enable_static_tools]) |
259 AM_CONDITIONAL(STATIC_TOOLS, [test "$enable_static_tools" = "yes"]) | 251 AM_CONDITIONAL(STATIC_TOOLS, [test "$enable_static_tools" = "yes"]) |
260 if test "$enable_static_tools" = "yes"; then | 252 if test "$enable_static_tools" = "yes"; then |
261 enable_static="yes" | 253 enable_static="yes" |
262 fi | 254 fi |
255 | |
256 | |
257 # The following lines adds the --enable-python option to configure: | |
258 # | |
259 # Give the user the choice to enter one of these: | |
260 # --enable-python | |
261 # --enable-python=yes | |
262 # --enable-python=no | |
263 # | |
264 AC_MSG_CHECKING([whether to build the libpst python interface]) | |
265 AC_ARG_ENABLE([python], | |
266 AC_HELP_STRING([--enable-python], [build libpst python interface]), | |
267 [ | |
268 case "${enableval}" in | |
269 yes) ;; | |
270 no) ;; | |
271 *) AC_MSG_ERROR(bad value ${enableval} for --python) ;; | |
272 esac | |
273 ], | |
274 [ | |
275 enable_python=no | |
276 ]) | |
277 AC_MSG_RESULT([$enable_python]) | |
278 AM_CONDITIONAL(PYTHON_INTERFACE, [test "$enable_python" = "yes"]) | |
279 if test "$enable_python" = "yes"; then | |
280 enable_shared="yes" | |
281 # check for boost | |
282 AX_PYTHON | |
283 AX_BOOST_PYTHON | |
284 if test "$ax_python_bin" = "no"; then | |
285 AC_MSG_ERROR(python binary not found) | |
286 fi | |
287 | |
288 AC_SUBST(PYTHON_VERSION, [$ax_python_bin]) | |
289 fi | |
290 | |
263 | 291 |
264 | 292 |
265 AC_OUTPUT( \ | 293 AC_OUTPUT( \ |
266 Makefile \ | 294 Makefile \ |
267 debian/Makefile \ | 295 debian/Makefile \ |