mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-10 14:57:52 +00:00
Make libtorrent-rasterbar 0.16.x usage explicit.
This commit is contained in:
parent
86f9cc1b8c
commit
72f03b4002
319
configure
vendored
319
configure
vendored
@ -599,10 +599,10 @@ EXPAND_MANDIR
|
|||||||
EXPAND_DATADIR
|
EXPAND_DATADIR
|
||||||
EXPAND_BINDIR
|
EXPAND_BINDIR
|
||||||
EXPAND_PREFIX
|
EXPAND_PREFIX
|
||||||
libtorrent_LIBS
|
|
||||||
libtorrent_CFLAGS
|
|
||||||
zlib_LIBS
|
zlib_LIBS
|
||||||
zlib_CFLAGS
|
zlib_CFLAGS
|
||||||
|
libtorrent_LIBS
|
||||||
|
libtorrent_CFLAGS
|
||||||
BOOST_SYSTEM_LIB
|
BOOST_SYSTEM_LIB
|
||||||
BOOST_LDFLAGS
|
BOOST_LDFLAGS
|
||||||
BOOST_CPPFLAGS
|
BOOST_CPPFLAGS
|
||||||
@ -713,6 +713,7 @@ enable_option_checking
|
|||||||
enable_dependency_tracking
|
enable_dependency_tracking
|
||||||
enable_silent_rules
|
enable_silent_rules
|
||||||
with_qt4
|
with_qt4
|
||||||
|
with_libtorrent_rasterbar0_16
|
||||||
with_geoip_database_embedded
|
with_geoip_database_embedded
|
||||||
with_qtsingleapplication
|
with_qtsingleapplication
|
||||||
enable_debug
|
enable_debug
|
||||||
@ -739,10 +740,10 @@ PKG_CONFIG
|
|||||||
PKG_CONFIG_PATH
|
PKG_CONFIG_PATH
|
||||||
PKG_CONFIG_LIBDIR
|
PKG_CONFIG_LIBDIR
|
||||||
QT_QMAKE
|
QT_QMAKE
|
||||||
zlib_CFLAGS
|
|
||||||
zlib_LIBS
|
|
||||||
libtorrent_CFLAGS
|
libtorrent_CFLAGS
|
||||||
libtorrent_LIBS'
|
libtorrent_LIBS
|
||||||
|
zlib_CFLAGS
|
||||||
|
zlib_LIBS'
|
||||||
|
|
||||||
|
|
||||||
# Initialize some variables set by options.
|
# Initialize some variables set by options.
|
||||||
@ -1378,6 +1379,9 @@ Optional Packages:
|
|||||||
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
||||||
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
||||||
--with-qt4 Compile using Qt4 (default=no)
|
--with-qt4 Compile using Qt4 (default=no)
|
||||||
|
--with-libtorrent-rasterbar0.16
|
||||||
|
Compile using libtorrent-rasterbar 0.16.x series
|
||||||
|
(default=no)
|
||||||
--with-geoip-database-embedded
|
--with-geoip-database-embedded
|
||||||
Embed the GeoIP database in the qBittorrent
|
Embed the GeoIP database in the qBittorrent
|
||||||
executable (please follow instructions in
|
executable (please follow instructions in
|
||||||
@ -1415,12 +1419,12 @@ Some influential environment variables:
|
|||||||
PKG_CONFIG_LIBDIR
|
PKG_CONFIG_LIBDIR
|
||||||
path overriding pkg-config's built-in search path
|
path overriding pkg-config's built-in search path
|
||||||
QT_QMAKE value of host_bins for Qt5Core >= 5.2.0, overriding pkg-config
|
QT_QMAKE value of host_bins for Qt5Core >= 5.2.0, overriding pkg-config
|
||||||
zlib_CFLAGS C compiler flags for zlib, overriding pkg-config
|
|
||||||
zlib_LIBS linker flags for zlib, overriding pkg-config
|
|
||||||
libtorrent_CFLAGS
|
libtorrent_CFLAGS
|
||||||
C compiler flags for libtorrent, overriding pkg-config
|
C compiler flags for libtorrent, overriding pkg-config
|
||||||
libtorrent_LIBS
|
libtorrent_LIBS
|
||||||
linker flags for libtorrent, overriding pkg-config
|
linker flags for libtorrent, overriding pkg-config
|
||||||
|
zlib_CFLAGS C compiler flags for zlib, overriding pkg-config
|
||||||
|
zlib_LIBS linker flags for zlib, overriding pkg-config
|
||||||
|
|
||||||
Use these variables to override the choices made by `configure' or to help
|
Use these variables to override the choices made by `configure' or to help
|
||||||
it to find libraries and programs with nonstandard names/locations.
|
it to find libraries and programs with nonstandard names/locations.
|
||||||
@ -4170,6 +4174,15 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# Check whether --with-libtorrent-rasterbar0.16 was given.
|
||||||
|
if test "${with_libtorrent_rasterbar0_16+set}" = set; then :
|
||||||
|
withval=$with_libtorrent_rasterbar0_16;
|
||||||
|
else
|
||||||
|
with_libtorrent_rasterbar0_16=no
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Check whether --with-geoip-database-embedded was given.
|
# Check whether --with-geoip-database-embedded was given.
|
||||||
if test "${with_geoip_database_embedded+set}" = set; then :
|
if test "${with_geoip_database_embedded+set}" = set; then :
|
||||||
withval=$with_geoip_database_embedded;
|
withval=$with_geoip_database_embedded;
|
||||||
@ -5261,6 +5274,205 @@ $as_echo "$as_me: Boost.System LIB: $BOOST_SYSTEM_LIB" >&6;}
|
|||||||
LIBS="$BOOST_SYSTEM_LIB $LIBS"
|
LIBS="$BOOST_SYSTEM_LIB $LIBS"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile using libtorrent-raser 0.16.x" >&5
|
||||||
|
$as_echo_n "checking whether to compile using libtorrent-raser 0.16.x... " >&6; }
|
||||||
|
case "x$with_libtorrent_rasterbar0_16" in #(
|
||||||
|
"xno") :
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||||
|
$as_echo "no" >&6; }
|
||||||
|
|
||||||
|
pkg_failed=no
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libtorrent" >&5
|
||||||
|
$as_echo_n "checking for libtorrent... " >&6; }
|
||||||
|
|
||||||
|
if test -n "$libtorrent_CFLAGS"; then
|
||||||
|
pkg_cv_libtorrent_CFLAGS="$libtorrent_CFLAGS"
|
||||||
|
elif test -n "$PKG_CONFIG"; then
|
||||||
|
if test -n "$PKG_CONFIG" && \
|
||||||
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtorrent-rasterbar >= 1.0.0\""; } >&5
|
||||||
|
($PKG_CONFIG --exists --print-errors "libtorrent-rasterbar >= 1.0.0") 2>&5
|
||||||
|
ac_status=$?
|
||||||
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
||||||
|
test $ac_status = 0; }; then
|
||||||
|
pkg_cv_libtorrent_CFLAGS=`$PKG_CONFIG --cflags "libtorrent-rasterbar >= 1.0.0" 2>/dev/null`
|
||||||
|
test "x$?" != "x0" && pkg_failed=yes
|
||||||
|
else
|
||||||
|
pkg_failed=yes
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
pkg_failed=untried
|
||||||
|
fi
|
||||||
|
if test -n "$libtorrent_LIBS"; then
|
||||||
|
pkg_cv_libtorrent_LIBS="$libtorrent_LIBS"
|
||||||
|
elif test -n "$PKG_CONFIG"; then
|
||||||
|
if test -n "$PKG_CONFIG" && \
|
||||||
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtorrent-rasterbar >= 1.0.0\""; } >&5
|
||||||
|
($PKG_CONFIG --exists --print-errors "libtorrent-rasterbar >= 1.0.0") 2>&5
|
||||||
|
ac_status=$?
|
||||||
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
||||||
|
test $ac_status = 0; }; then
|
||||||
|
pkg_cv_libtorrent_LIBS=`$PKG_CONFIG --libs "libtorrent-rasterbar >= 1.0.0" 2>/dev/null`
|
||||||
|
test "x$?" != "x0" && pkg_failed=yes
|
||||||
|
else
|
||||||
|
pkg_failed=yes
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
pkg_failed=untried
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if test $pkg_failed = yes; then
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||||
|
$as_echo "no" >&6; }
|
||||||
|
|
||||||
|
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
|
||||||
|
_pkg_short_errors_supported=yes
|
||||||
|
else
|
||||||
|
_pkg_short_errors_supported=no
|
||||||
|
fi
|
||||||
|
if test $_pkg_short_errors_supported = yes; then
|
||||||
|
libtorrent_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libtorrent-rasterbar >= 1.0.0" 2>&1`
|
||||||
|
else
|
||||||
|
libtorrent_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libtorrent-rasterbar >= 1.0.0" 2>&1`
|
||||||
|
fi
|
||||||
|
# Put the nasty error message in config.log where it belongs
|
||||||
|
echo "$libtorrent_PKG_ERRORS" >&5
|
||||||
|
|
||||||
|
as_fn_error $? "Package requirements (libtorrent-rasterbar >= 1.0.0) were not met:
|
||||||
|
|
||||||
|
$libtorrent_PKG_ERRORS
|
||||||
|
|
||||||
|
Consider adjusting the PKG_CONFIG_PATH environment variable if you
|
||||||
|
installed software in a non-standard prefix.
|
||||||
|
|
||||||
|
Alternatively, you may set the environment variables libtorrent_CFLAGS
|
||||||
|
and libtorrent_LIBS to avoid the need to call pkg-config.
|
||||||
|
See the pkg-config man page for more details." "$LINENO" 5
|
||||||
|
elif test $pkg_failed = untried; then
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||||
|
$as_echo "no" >&6; }
|
||||||
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
||||||
|
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
||||||
|
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
|
||||||
|
is in your PATH or set the PKG_CONFIG environment variable to the full
|
||||||
|
path to pkg-config.
|
||||||
|
|
||||||
|
Alternatively, you may set the environment variables libtorrent_CFLAGS
|
||||||
|
and libtorrent_LIBS to avoid the need to call pkg-config.
|
||||||
|
See the pkg-config man page for more details.
|
||||||
|
|
||||||
|
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
|
||||||
|
See \`config.log' for more details" "$LINENO" 5; }
|
||||||
|
else
|
||||||
|
libtorrent_CFLAGS=$pkg_cv_libtorrent_CFLAGS
|
||||||
|
libtorrent_LIBS=$pkg_cv_libtorrent_LIBS
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||||
|
$as_echo "yes" >&6; }
|
||||||
|
CPPFLAGS="$libtorrent_CFLAGS $CPPFLAGS"
|
||||||
|
LIBS="$libtorrent_LIBS $LIBS"
|
||||||
|
fi ;; #(
|
||||||
|
"xyes") :
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||||
|
$as_echo "yes" >&6; }
|
||||||
|
|
||||||
|
pkg_failed=no
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libtorrent" >&5
|
||||||
|
$as_echo_n "checking for libtorrent... " >&6; }
|
||||||
|
|
||||||
|
if test -n "$libtorrent_CFLAGS"; then
|
||||||
|
pkg_cv_libtorrent_CFLAGS="$libtorrent_CFLAGS"
|
||||||
|
elif test -n "$PKG_CONFIG"; then
|
||||||
|
if test -n "$PKG_CONFIG" && \
|
||||||
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtorrent-rasterbar >= 0.16.0\""; } >&5
|
||||||
|
($PKG_CONFIG --exists --print-errors "libtorrent-rasterbar >= 0.16.0") 2>&5
|
||||||
|
ac_status=$?
|
||||||
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
||||||
|
test $ac_status = 0; }; then
|
||||||
|
pkg_cv_libtorrent_CFLAGS=`$PKG_CONFIG --cflags "libtorrent-rasterbar >= 0.16.0" 2>/dev/null`
|
||||||
|
test "x$?" != "x0" && pkg_failed=yes
|
||||||
|
else
|
||||||
|
pkg_failed=yes
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
pkg_failed=untried
|
||||||
|
fi
|
||||||
|
if test -n "$libtorrent_LIBS"; then
|
||||||
|
pkg_cv_libtorrent_LIBS="$libtorrent_LIBS"
|
||||||
|
elif test -n "$PKG_CONFIG"; then
|
||||||
|
if test -n "$PKG_CONFIG" && \
|
||||||
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtorrent-rasterbar >= 0.16.0\""; } >&5
|
||||||
|
($PKG_CONFIG --exists --print-errors "libtorrent-rasterbar >= 0.16.0") 2>&5
|
||||||
|
ac_status=$?
|
||||||
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
||||||
|
test $ac_status = 0; }; then
|
||||||
|
pkg_cv_libtorrent_LIBS=`$PKG_CONFIG --libs "libtorrent-rasterbar >= 0.16.0" 2>/dev/null`
|
||||||
|
test "x$?" != "x0" && pkg_failed=yes
|
||||||
|
else
|
||||||
|
pkg_failed=yes
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
pkg_failed=untried
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if test $pkg_failed = yes; then
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||||
|
$as_echo "no" >&6; }
|
||||||
|
|
||||||
|
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
|
||||||
|
_pkg_short_errors_supported=yes
|
||||||
|
else
|
||||||
|
_pkg_short_errors_supported=no
|
||||||
|
fi
|
||||||
|
if test $_pkg_short_errors_supported = yes; then
|
||||||
|
libtorrent_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libtorrent-rasterbar >= 0.16.0" 2>&1`
|
||||||
|
else
|
||||||
|
libtorrent_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libtorrent-rasterbar >= 0.16.0" 2>&1`
|
||||||
|
fi
|
||||||
|
# Put the nasty error message in config.log where it belongs
|
||||||
|
echo "$libtorrent_PKG_ERRORS" >&5
|
||||||
|
|
||||||
|
as_fn_error $? "Package requirements (libtorrent-rasterbar >= 0.16.0) were not met:
|
||||||
|
|
||||||
|
$libtorrent_PKG_ERRORS
|
||||||
|
|
||||||
|
Consider adjusting the PKG_CONFIG_PATH environment variable if you
|
||||||
|
installed software in a non-standard prefix.
|
||||||
|
|
||||||
|
Alternatively, you may set the environment variables libtorrent_CFLAGS
|
||||||
|
and libtorrent_LIBS to avoid the need to call pkg-config.
|
||||||
|
See the pkg-config man page for more details." "$LINENO" 5
|
||||||
|
elif test $pkg_failed = untried; then
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||||
|
$as_echo "no" >&6; }
|
||||||
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
||||||
|
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
||||||
|
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
|
||||||
|
is in your PATH or set the PKG_CONFIG environment variable to the full
|
||||||
|
path to pkg-config.
|
||||||
|
|
||||||
|
Alternatively, you may set the environment variables libtorrent_CFLAGS
|
||||||
|
and libtorrent_LIBS to avoid the need to call pkg-config.
|
||||||
|
See the pkg-config man page for more details.
|
||||||
|
|
||||||
|
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
|
||||||
|
See \`config.log' for more details" "$LINENO" 5; }
|
||||||
|
else
|
||||||
|
libtorrent_CFLAGS=$pkg_cv_libtorrent_CFLAGS
|
||||||
|
libtorrent_LIBS=$pkg_cv_libtorrent_LIBS
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||||
|
$as_echo "yes" >&6; }
|
||||||
|
CPPFLAGS="$libtorrent_CFLAGS $CPPFLAGS"
|
||||||
|
LIBS="$libtorrent_LIBS $LIBS"
|
||||||
|
fi ;; #(
|
||||||
|
*) :
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_libtorrent_rasterbar0_16" >&5
|
||||||
|
$as_echo "$with_libtorrent_rasterbar0_16" >&6; }
|
||||||
|
as_fn_error $? "Unknown option \"$with_libtorrent_rasterbar0_16\". Use either \"yes\" or \"no\"." "$LINENO" 5 ;;
|
||||||
|
esac
|
||||||
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to embed the GeoIP database" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to embed the GeoIP database" >&5
|
||||||
$as_echo_n "checking whether to embed the GeoIP database... " >&6; }
|
$as_echo_n "checking whether to embed the GeoIP database... " >&6; }
|
||||||
case "x$with_geoip_database_embedded" in #(
|
case "x$with_geoip_database_embedded" in #(
|
||||||
@ -5388,99 +5600,6 @@ $as_echo "yes" >&6; }
|
|||||||
LIBS="$zlib_LIBS $LIBS"
|
LIBS="$zlib_LIBS $LIBS"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
pkg_failed=no
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libtorrent" >&5
|
|
||||||
$as_echo_n "checking for libtorrent... " >&6; }
|
|
||||||
|
|
||||||
if test -n "$libtorrent_CFLAGS"; then
|
|
||||||
pkg_cv_libtorrent_CFLAGS="$libtorrent_CFLAGS"
|
|
||||||
elif test -n "$PKG_CONFIG"; then
|
|
||||||
if test -n "$PKG_CONFIG" && \
|
|
||||||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtorrent-rasterbar >= 0.16.0\""; } >&5
|
|
||||||
($PKG_CONFIG --exists --print-errors "libtorrent-rasterbar >= 0.16.0") 2>&5
|
|
||||||
ac_status=$?
|
|
||||||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
||||||
test $ac_status = 0; }; then
|
|
||||||
pkg_cv_libtorrent_CFLAGS=`$PKG_CONFIG --cflags "libtorrent-rasterbar >= 0.16.0" 2>/dev/null`
|
|
||||||
test "x$?" != "x0" && pkg_failed=yes
|
|
||||||
else
|
|
||||||
pkg_failed=yes
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
pkg_failed=untried
|
|
||||||
fi
|
|
||||||
if test -n "$libtorrent_LIBS"; then
|
|
||||||
pkg_cv_libtorrent_LIBS="$libtorrent_LIBS"
|
|
||||||
elif test -n "$PKG_CONFIG"; then
|
|
||||||
if test -n "$PKG_CONFIG" && \
|
|
||||||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtorrent-rasterbar >= 0.16.0\""; } >&5
|
|
||||||
($PKG_CONFIG --exists --print-errors "libtorrent-rasterbar >= 0.16.0") 2>&5
|
|
||||||
ac_status=$?
|
|
||||||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
||||||
test $ac_status = 0; }; then
|
|
||||||
pkg_cv_libtorrent_LIBS=`$PKG_CONFIG --libs "libtorrent-rasterbar >= 0.16.0" 2>/dev/null`
|
|
||||||
test "x$?" != "x0" && pkg_failed=yes
|
|
||||||
else
|
|
||||||
pkg_failed=yes
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
pkg_failed=untried
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if test $pkg_failed = yes; then
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
||||||
$as_echo "no" >&6; }
|
|
||||||
|
|
||||||
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
|
|
||||||
_pkg_short_errors_supported=yes
|
|
||||||
else
|
|
||||||
_pkg_short_errors_supported=no
|
|
||||||
fi
|
|
||||||
if test $_pkg_short_errors_supported = yes; then
|
|
||||||
libtorrent_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libtorrent-rasterbar >= 0.16.0" 2>&1`
|
|
||||||
else
|
|
||||||
libtorrent_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libtorrent-rasterbar >= 0.16.0" 2>&1`
|
|
||||||
fi
|
|
||||||
# Put the nasty error message in config.log where it belongs
|
|
||||||
echo "$libtorrent_PKG_ERRORS" >&5
|
|
||||||
|
|
||||||
as_fn_error $? "Package requirements (libtorrent-rasterbar >= 0.16.0) were not met:
|
|
||||||
|
|
||||||
$libtorrent_PKG_ERRORS
|
|
||||||
|
|
||||||
Consider adjusting the PKG_CONFIG_PATH environment variable if you
|
|
||||||
installed software in a non-standard prefix.
|
|
||||||
|
|
||||||
Alternatively, you may set the environment variables libtorrent_CFLAGS
|
|
||||||
and libtorrent_LIBS to avoid the need to call pkg-config.
|
|
||||||
See the pkg-config man page for more details." "$LINENO" 5
|
|
||||||
elif test $pkg_failed = untried; then
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
||||||
$as_echo "no" >&6; }
|
|
||||||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
|
||||||
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
|
||||||
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
|
|
||||||
is in your PATH or set the PKG_CONFIG environment variable to the full
|
|
||||||
path to pkg-config.
|
|
||||||
|
|
||||||
Alternatively, you may set the environment variables libtorrent_CFLAGS
|
|
||||||
and libtorrent_LIBS to avoid the need to call pkg-config.
|
|
||||||
See the pkg-config man page for more details.
|
|
||||||
|
|
||||||
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
|
|
||||||
See \`config.log' for more details" "$LINENO" 5; }
|
|
||||||
else
|
|
||||||
libtorrent_CFLAGS=$pkg_cv_libtorrent_CFLAGS
|
|
||||||
libtorrent_LIBS=$pkg_cv_libtorrent_LIBS
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
||||||
$as_echo "yes" >&6; }
|
|
||||||
CPPFLAGS="$libtorrent_CFLAGS $CPPFLAGS"
|
|
||||||
LIBS="$libtorrent_LIBS $LIBS"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# These are required because autoconf doesn't expand these **particular**
|
# These are required because autoconf doesn't expand these **particular**
|
||||||
# vars automatically. And qmake cannot autoexpand them.
|
# vars automatically. And qmake cannot autoexpand them.
|
||||||
|
|
||||||
|
28
configure.ac
28
configure.ac
@ -18,6 +18,12 @@ AC_ARG_WITH(qt4,
|
|||||||
[],
|
[],
|
||||||
[with_qt4=no])
|
[with_qt4=no])
|
||||||
|
|
||||||
|
AC_ARG_WITH(libtorrent-rasterbar0.16,
|
||||||
|
[AS_HELP_STRING([--with-libtorrent-rasterbar0.16],
|
||||||
|
[Compile using libtorrent-rasterbar 0.16.x series (default=no)])],
|
||||||
|
[],
|
||||||
|
[with_libtorrent_rasterbar0_16=no])
|
||||||
|
|
||||||
AC_ARG_WITH(geoip-database-embedded,
|
AC_ARG_WITH(geoip-database-embedded,
|
||||||
[AS_HELP_STRING([--with-geoip-database-embedded],
|
[AS_HELP_STRING([--with-geoip-database-embedded],
|
||||||
[Embed the GeoIP database in the qBittorrent executable (please follow instructions in src/geoip/README) (default=no)])],
|
[Embed the GeoIP database in the qBittorrent executable (please follow instructions in src/geoip/README) (default=no)])],
|
||||||
@ -169,6 +175,23 @@ AS_IF([test "x$BOOST_SYSTEM_LIB" = "x"],
|
|||||||
[AC_MSG_NOTICE([Boost.System LIB: $BOOST_SYSTEM_LIB])
|
[AC_MSG_NOTICE([Boost.System LIB: $BOOST_SYSTEM_LIB])
|
||||||
LIBS="$BOOST_SYSTEM_LIB $LIBS"])
|
LIBS="$BOOST_SYSTEM_LIB $LIBS"])
|
||||||
|
|
||||||
|
AC_MSG_CHECKING([whether to compile using libtorrent-raser 0.16.x])
|
||||||
|
AS_CASE(["x$with_libtorrent_rasterbar0_16"],
|
||||||
|
["xno"],
|
||||||
|
[AC_MSG_RESULT([no])
|
||||||
|
PKG_CHECK_MODULES(libtorrent,
|
||||||
|
[libtorrent-rasterbar >= 1.0.0],
|
||||||
|
[CPPFLAGS="$libtorrent_CFLAGS $CPPFLAGS"
|
||||||
|
LIBS="$libtorrent_LIBS $LIBS"])],
|
||||||
|
["xyes"],
|
||||||
|
[AC_MSG_RESULT([yes])
|
||||||
|
PKG_CHECK_MODULES(libtorrent,
|
||||||
|
[libtorrent-rasterbar >= 0.16.0],
|
||||||
|
[CPPFLAGS="$libtorrent_CFLAGS $CPPFLAGS"
|
||||||
|
LIBS="$libtorrent_LIBS $LIBS"])],
|
||||||
|
[AC_MSG_RESULT([$with_libtorrent_rasterbar0_16])
|
||||||
|
AC_MSG_ERROR([Unknown option "$with_libtorrent_rasterbar0_16". Use either "yes" or "no".])])
|
||||||
|
|
||||||
AC_MSG_CHECKING([whether to embed the GeoIP database])
|
AC_MSG_CHECKING([whether to embed the GeoIP database])
|
||||||
AS_CASE(["x$with_geoip_database_embedded"],
|
AS_CASE(["x$with_geoip_database_embedded"],
|
||||||
["xno"],
|
["xno"],
|
||||||
@ -196,11 +219,6 @@ PKG_CHECK_MODULES(zlib,
|
|||||||
[CPPFLAGS="$zlib_CFLAGS $CPPFLAGS"
|
[CPPFLAGS="$zlib_CFLAGS $CPPFLAGS"
|
||||||
LIBS="$zlib_LIBS $LIBS"])
|
LIBS="$zlib_LIBS $LIBS"])
|
||||||
|
|
||||||
PKG_CHECK_MODULES(libtorrent,
|
|
||||||
[libtorrent-rasterbar >= 0.16.0],
|
|
||||||
[CPPFLAGS="$libtorrent_CFLAGS $CPPFLAGS"
|
|
||||||
LIBS="$libtorrent_LIBS $LIBS"])
|
|
||||||
|
|
||||||
# These are required because autoconf doesn't expand these **particular**
|
# These are required because autoconf doesn't expand these **particular**
|
||||||
# vars automatically. And qmake cannot autoexpand them.
|
# vars automatically. And qmake cannot autoexpand them.
|
||||||
AX_DEFINE_DIR([EXPAND_PREFIX], [prefix])
|
AX_DEFINE_DIR([EXPAND_PREFIX], [prefix])
|
||||||
|
Loading…
Reference in New Issue
Block a user