configure.ac: fix to correctly export deprecated functions build options to

python bindings.
This commit is contained in:
cristiangreco 2011-01-20 18:40:43 +00:00
parent c6c7ed16f6
commit 845be2e98e
1 changed files with 1 additions and 0 deletions

View File

@ -323,6 +323,7 @@ AS_CASE(["$ARG_ENABLE_DEPRECATED"],
["no"|"off"], [
AC_MSG_RESULT([no])
AC_DEFINE([TORRENT_NO_DEPRECATE],[1],[Define to exclude all deprecated functions from the API.])
COMPILETIME_OPTIONS+="-DTORRENT_NO_DEPRECATE "
],
[AC_MSG_RESULT([$ARG_ENABLE_DEPRECATED])
AC_MSG_ERROR([Unknown option "$ARG_ENABLE_DEPRECATED". Use either "yes" or "no".])]