@@ -601,6 +601,8 @@ EXPAND_BINDIR
601601EXPAND_PREFIX
602602zlib_LIBS
603603zlib_CFLAGS
604+ qjson_LIBS
605+ qjson_CFLAGS
604606libtorrent_LIBS
605607libtorrent_CFLAGS
606608BOOST_SYSTEM_LIB
@@ -716,6 +718,7 @@ with_qt5
716718with_libtorrent_rasterbar0_16
717719with_geoip_database_embedded
718720with_qtsingleapplication
721+ with_qjson
719722enable_debug
720723enable_gui
721724enable_systemd
@@ -742,6 +745,8 @@ PKG_CONFIG_LIBDIR
742745QT_QMAKE
743746libtorrent_CFLAGS
744747libtorrent_LIBS
748+ qjson_CFLAGS
749+ qjson_LIBS
745750zlib_CFLAGS
746751zlib_LIBS'
747752
@@ -1389,6 +1394,9 @@ Optional Packages:
13891394 --with-qtsingleapplication=[system|shipped]
13901395 Use the shipped qtsingleapplication library or the
13911396 system one (default=shipped)
1397+ --with-qjson=[system|shipped]
1398+ Use the shipped qjson library or the system one
1399+ (default=shipped) (Qt4 only
13921400 --with-boost[=ARG] use Boost library from a standard location
13931401 (ARG=yes), from the specified location (ARG=<path>),
13941402 or disable it (ARG=no) [ARG=yes]
@@ -1423,6 +1431,9 @@ Some influential environment variables:
14231431 C compiler flags for libtorrent, overriding pkg-config
14241432 libtorrent_LIBS
14251433 linker flags for libtorrent, overriding pkg-config
1434+ qjson_CFLAGS
1435+ C compiler flags for qjson, overriding pkg-config
1436+ qjson_LIBS linker flags for qjson, overriding pkg-config
14261437 zlib_CFLAGS C compiler flags for zlib, overriding pkg-config
14271438 zlib_LIBS linker flags for zlib, overriding pkg-config
14281439
@@ -4200,6 +4211,15 @@ else
42004211fi
42014212
42024213
4214+
4215+ # Check whether --with-qjson was given.
4216+ if test " ${with_qjson+set} " = set ; then :
4217+ withval=$with_qjson ;
4218+ else
4219+ with_qjson=shipped
4220+ fi
4221+
4222+
42034223# Check whether --enable-debug was given.
42044224if test " ${enable_debug+set} " = set ; then :
42054225 enableval=$enable_debug ;
@@ -5507,6 +5527,118 @@ $as_echo "$with_qtsingleapplication" >&6; }
55075527 as_fn_error $? " Unknown option \" $with_qtsingleapplication \" . Use either \" system\" or \" shipped\" ." " $LINENO " 5 ;;
55085528esac
55095529
5530+ if test " x$with_qt5 " = " xno" ; then :
5531+ { $as_echo " $as_me :${as_lineno-$LINENO } : checking which qjson to use" >&5
5532+ $as_echo_n " checking which qjson to use... " >&6 ; }
5533+ case " x$with_qjson " in # (
5534+ " xshipped" ) :
5535+ { $as_echo " $as_me :${as_lineno-$LINENO } : result: shipped" >&5
5536+ $as_echo " shipped" >&6 ; }
5537+ QBT_REMOVE_CONFIG=" $QBT_REMOVE_CONFIG usesystemqjson" ;; # (
5538+ " xsystem" ) :
5539+ { $as_echo " $as_me :${as_lineno-$LINENO } : result: system" >&5
5540+ $as_echo " system" >&6 ; }
5541+
5542+ pkg_failed=no
5543+ { $as_echo " $as_me :${as_lineno-$LINENO } : checking for qjson" >&5
5544+ $as_echo_n " checking for qjson... " >&6 ; }
5545+
5546+ if test -n " $qjson_CFLAGS " ; then
5547+ pkg_cv_qjson_CFLAGS=" $qjson_CFLAGS "
5548+ elif test -n " $PKG_CONFIG " ; then
5549+ if test -n " $PKG_CONFIG " && \
5550+ { { $as_echo " $as_me :${as_lineno-$LINENO } : \$ PKG_CONFIG --exists --print-errors \" QJson >= 0.8.1\" " ; } >&5
5551+ ($PKG_CONFIG --exists --print-errors " QJson >= 0.8.1" ) 2>&5
5552+ ac_status=$?
5553+ $as_echo " $as_me :${as_lineno-$LINENO } : \$ ? = $ac_status " >&5
5554+ test $ac_status = 0; }; then
5555+ pkg_cv_qjson_CFLAGS=` $PKG_CONFIG --cflags " QJson >= 0.8.1" 2> /dev/null`
5556+ test " x$? " ! = " x0" && pkg_failed=yes
5557+ else
5558+ pkg_failed=yes
5559+ fi
5560+ else
5561+ pkg_failed=untried
5562+ fi
5563+ if test -n " $qjson_LIBS " ; then
5564+ pkg_cv_qjson_LIBS=" $qjson_LIBS "
5565+ elif test -n " $PKG_CONFIG " ; then
5566+ if test -n " $PKG_CONFIG " && \
5567+ { { $as_echo " $as_me :${as_lineno-$LINENO } : \$ PKG_CONFIG --exists --print-errors \" QJson >= 0.8.1\" " ; } >&5
5568+ ($PKG_CONFIG --exists --print-errors " QJson >= 0.8.1" ) 2>&5
5569+ ac_status=$?
5570+ $as_echo " $as_me :${as_lineno-$LINENO } : \$ ? = $ac_status " >&5
5571+ test $ac_status = 0; }; then
5572+ pkg_cv_qjson_LIBS=` $PKG_CONFIG --libs " QJson >= 0.8.1" 2> /dev/null`
5573+ test " x$? " ! = " x0" && pkg_failed=yes
5574+ else
5575+ pkg_failed=yes
5576+ fi
5577+ else
5578+ pkg_failed=untried
5579+ fi
5580+
5581+
5582+
5583+ if test $pkg_failed = yes; then
5584+ { $as_echo " $as_me :${as_lineno-$LINENO } : result: no" >&5
5585+ $as_echo " no" >&6 ; }
5586+
5587+ if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5588+ _pkg_short_errors_supported=yes
5589+ else
5590+ _pkg_short_errors_supported=no
5591+ fi
5592+ if test $_pkg_short_errors_supported = yes; then
5593+ qjson_PKG_ERRORS=` $PKG_CONFIG --short-errors --print-errors --cflags --libs " QJson >= 0.8.1" 2>&1 `
5594+ else
5595+ qjson_PKG_ERRORS=` $PKG_CONFIG --print-errors --cflags --libs " QJson >= 0.8.1" 2>&1 `
5596+ fi
5597+ # Put the nasty error message in config.log where it belongs
5598+ echo " $qjson_PKG_ERRORS " >&5
5599+
5600+ as_fn_error $? " Package requirements (QJson >= 0.8.1) were not met:
5601+
5602+ $qjson_PKG_ERRORS
5603+
5604+ Consider adjusting the PKG_CONFIG_PATH environment variable if you
5605+ installed software in a non-standard prefix.
5606+
5607+ Alternatively, you may set the environment variables qjson_CFLAGS
5608+ and qjson_LIBS to avoid the need to call pkg-config.
5609+ See the pkg-config man page for more details." " $LINENO " 5
5610+ elif test $pkg_failed = untried; then
5611+ { $as_echo " $as_me :${as_lineno-$LINENO } : result: no" >&5
5612+ $as_echo " no" >&6 ; }
5613+ { { $as_echo " $as_me :${as_lineno-$LINENO } : error: in \` $ac_pwd ':" >&5
5614+ $as_echo " $as_me : error: in \` $ac_pwd ':" >&2 ; }
5615+ as_fn_error $? " The pkg-config script could not be found or is too old. Make sure it
5616+ is in your PATH or set the PKG_CONFIG environment variable to the full
5617+ path to pkg-config.
5618+
5619+ Alternatively, you may set the environment variables qjson_CFLAGS
5620+ and qjson_LIBS to avoid the need to call pkg-config.
5621+ See the pkg-config man page for more details.
5622+
5623+ To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5624+ See \` config.log' for more details" " $LINENO " 5; }
5625+ else
5626+ qjson_CFLAGS=$pkg_cv_qjson_CFLAGS
5627+ qjson_LIBS=$pkg_cv_qjson_LIBS
5628+ { $as_echo " $as_me :${as_lineno-$LINENO } : result: yes" >&5
5629+ $as_echo " yes" >&6 ; }
5630+ CPPFLAGS=" $qjson_CFLAGS $CPPFLAGS "
5631+ LIBS=" $qjson_LIBS $LIBS "
5632+ fi
5633+ QBT_ADD_CONFIG=" $QBT_ADD_CONFIG usesystemqjson" ;; # (
5634+ * ) :
5635+ { $as_echo " $as_me :${as_lineno-$LINENO } : result: $with_qjson " >&5
5636+ $as_echo " $with_qjson " >&6 ; }
5637+ as_fn_error $? " Unknown option \" $with_qjson \" . Use either \" system\" or \" shipped\" ." " $LINENO " 5 ;;
5638+ esac
5639+
5640+ fi
5641+
55105642
55115643pkg_failed=no
55125644{ $as_echo " $as_me :${as_lineno-$LINENO } : checking for zlib" >&5
0 commit comments