forked from premiere/premiere-libtorrent
updated Changelog and added --enable-examples configure option.
This commit is contained in:
parent
056558576e
commit
22deb903db
|
@ -1,3 +1,5 @@
|
|||
* fixed bug with file_progress() with files > 2 GB
|
||||
* added --enable-examples option to configure script
|
||||
* fixed problem with the resource distribution algorithm
|
||||
(controlling e.g upload/download rates)
|
||||
* fixed incorrect asserts in storage related to torrents with
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
SUBDIRS = include @ZLIBDIR@ src examples test
|
||||
SUBDIRS = include @ZLIBDIR@ src @EXAMPLESDIR@ test
|
||||
EXTRA_DIST = docs/manual.html docs/manual.rst docs/extension_protocol.rst \
|
||||
docs/extension_protocol.html docs/udp_tracker_protocol.rst \
|
||||
docs/projects.rst docs/projects.html \
|
||||
|
|
34
configure.in
34
configure.in
|
@ -115,6 +115,35 @@ AC_SUBST([ZLIB])
|
|||
AC_SUBST([ZLIBDIR])
|
||||
AC_SUBST([ZLIBINCL])
|
||||
|
||||
dnl Check whether the examples should be build
|
||||
AC_ARG_ENABLE(
|
||||
[examples],
|
||||
AS_HELP_STRING([--enable-examples]],[Build the examples. Default is not to build them.]),
|
||||
[[examples=$enableval]],
|
||||
[[examples=no]]
|
||||
)
|
||||
dnl Check the value of the --with-examples switch
|
||||
AC_MSG_CHECKING([if the examples should be build])
|
||||
case "$examples" in
|
||||
"yes")
|
||||
AC_MSG_RESULT(yes)
|
||||
EXAMPLESDIR="examples"
|
||||
;;
|
||||
"no")
|
||||
AC_MSG_RESULT(no)
|
||||
EXAMPLESDIR=""
|
||||
;;
|
||||
"")
|
||||
AC_MSG_RESULT(yes (default))
|
||||
EXAMPLESDIR="examples"
|
||||
;;
|
||||
*)
|
||||
AC_MSG_RESULT()
|
||||
AC_MSG_ERROR([Unknown --enable-examples option "$examples". Use either "yes" or "no".])
|
||||
esac
|
||||
dnl make $examples visible to Makefiles
|
||||
AC_SUBST([EXAMPLESDIR])
|
||||
|
||||
dnl want some debugging symbols with that?
|
||||
AC_ARG_ENABLE(
|
||||
[debug],
|
||||
|
@ -134,5 +163,8 @@ AC_ARG_ENABLE(
|
|||
)
|
||||
AC_SUBST(DEBUGFLAGS)
|
||||
|
||||
AC_CONFIG_FILES(Makefile src/Makefile include/Makefile examples/Makefile test/Makefile libtorrent.pc)
|
||||
AC_CONFIG_FILES(Makefile src/Makefile include/Makefile test/Makefile libtorrent.pc)
|
||||
if [[ "x$examples" == "xyes" ]]; then
|
||||
AC_CONFIG_FILES(examples/Makefile)
|
||||
fi
|
||||
AC_OUTPUT
|
||||
|
|
Loading…
Reference in New Issue