mirror of
https://github.com/aria2/aria2.git
synced 2025-01-08 11:01:38 +00:00
Add --enable-libaria2 configure option
By default, libaria2 feature is disabled. Use --enable-libaria2 to enable it. libaria2 static build is also disabled by default. Use --enable-static to enable it.
This commit is contained in:
parent
2bf2dba544
commit
1b920e4011
@ -5,7 +5,7 @@ AC_PREREQ([2.67])
|
||||
LT_PREREQ([2.2.6])
|
||||
AC_INIT([aria2],[1.17.0],[t-tujikawa@users.sourceforge.net],[aria2],[http://aria2.sourceforge.net/])
|
||||
AC_USE_SYSTEM_EXTENSIONS
|
||||
LT_INIT()
|
||||
LT_INIT([disable-static])
|
||||
dnl See versioning rule:
|
||||
dnl http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
|
||||
AC_SUBST(LT_CURRENT, 0)
|
||||
@ -48,6 +48,7 @@ ARIA2_ARG_WITH([jemalloc])
|
||||
ARIA2_ARG_DISABLE([bittorrent])
|
||||
ARIA2_ARG_DISABLE([metalink])
|
||||
ARIA2_ARG_DISABLE([epoll])
|
||||
ARIA2_ARG_ENABLE([libaria2])
|
||||
|
||||
AC_ARG_WITH([ca-bundle],
|
||||
AS_HELP_STRING([--with-ca-bundle=FILE],[Use FILE as default CA bundle.]),
|
||||
@ -802,6 +803,8 @@ if test "x$enable_message_digest" = "xyes"; then
|
||||
fi
|
||||
AM_CONDITIONAL([ENABLE_WEBSOCKET], [test "x$enable_websocket" = "xyes"])
|
||||
|
||||
AM_CONDITIONAL([ENABLE_LIBARIA2], [test "x$enable_libaria2" = "xyes"])
|
||||
|
||||
AC_SUBST([bashcompletiondir])
|
||||
|
||||
case "$host" in
|
||||
@ -870,5 +873,9 @@ echo "Metalink: $enable_metalink"
|
||||
echo "XML-RPC: $enable_xml_rpc"
|
||||
echo "Message Digest: $enable_message_digest"
|
||||
echo "WebSocket: $enable_websocket"
|
||||
echo "Libaria2: $enable_libaria2"
|
||||
if test "x$enable_libaria2" = "xyes"; then
|
||||
echo "Library types: Shared=${enable_shared}, Static=${enable_static}"
|
||||
fi
|
||||
echo "bash_completion dir: $bashcompletiondir"
|
||||
echo "Static build: $ARIA2_STATIC"
|
||||
|
@ -641,10 +641,16 @@ pkgconfigdir = $(libdir)/pkgconfig
|
||||
pkgconfig_DATA = libaria2.pc
|
||||
DISTCLEANFILES = $(pkgconfig_DATA)
|
||||
|
||||
if ENABLE_LIBARIA2
|
||||
lib_LTLIBRARIES = libaria2.la
|
||||
libaria2_la_SOURCES = $(SRCS) \
|
||||
aria2api.cc aria2api.h \
|
||||
KeepRunningCommand.cc KeepRunningCommand.h
|
||||
else # !ENABLE_LIBARIA2
|
||||
noinst_LTLIBRARIES = libaria2.la
|
||||
libaria2_la_SOURCES = $(SRCS)
|
||||
endif # !ENABLE_LIBARIA2
|
||||
|
||||
libaria2_la_LIBADD = @WSLAY_LIBS@
|
||||
|
||||
LDADD = libaria2.la @LIBINTL@ @ALLOCA@ #-lprofiler
|
||||
|
Loading…
Reference in New Issue
Block a user