mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-10 23:07:59 +00:00
Make Qt4 usage explicit.
This commit is contained in:
parent
de5912b3b5
commit
86f9cc1b8c
212
configure
vendored
212
configure
vendored
@ -712,7 +712,7 @@ ac_user_opts='
|
|||||||
enable_option_checking
|
enable_option_checking
|
||||||
enable_dependency_tracking
|
enable_dependency_tracking
|
||||||
enable_silent_rules
|
enable_silent_rules
|
||||||
with_qt5
|
with_qt4
|
||||||
with_geoip_database_embedded
|
with_geoip_database_embedded
|
||||||
with_qtsingleapplication
|
with_qtsingleapplication
|
||||||
enable_debug
|
enable_debug
|
||||||
@ -1377,7 +1377,7 @@ Optional Features:
|
|||||||
Optional Packages:
|
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-qt5 Compile using Qt5 (default=no)
|
--with-qt4 Compile using Qt4 (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
|
||||||
@ -1414,7 +1414,7 @@ Some influential environment variables:
|
|||||||
directories to add to pkg-config's search path
|
directories to add to pkg-config's search path
|
||||||
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 moc_location for QtCore >= 4.8.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_CFLAGS C compiler flags for zlib, overriding pkg-config
|
||||||
zlib_LIBS linker flags for zlib, overriding pkg-config
|
zlib_LIBS linker flags for zlib, overriding pkg-config
|
||||||
libtorrent_CFLAGS
|
libtorrent_CFLAGS
|
||||||
@ -4161,11 +4161,11 @@ fi
|
|||||||
# Define --wth-* and --enable-* arguments
|
# Define --wth-* and --enable-* arguments
|
||||||
|
|
||||||
|
|
||||||
# Check whether --with-qt5 was given.
|
# Check whether --with-qt4 was given.
|
||||||
if test "${with_qt5+set}" = set; then :
|
if test "${with_qt4+set}" = set; then :
|
||||||
withval=$with_qt5;
|
withval=$with_qt4;
|
||||||
else
|
else
|
||||||
with_qt5=no
|
with_qt4=no
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
@ -4438,13 +4438,106 @@ $as_echo "$enable_webui" >&6; }
|
|||||||
as_fn_error $? "Unknown option \"$enable_webui\". Use either \"yes\" or \"no\"." "$LINENO" 5 ;;
|
as_fn_error $? "Unknown option \"$enable_webui\". Use either \"yes\" or \"no\"." "$LINENO" 5 ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Qt5 should be enabled" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Qt4 should be enabled" >&5
|
||||||
$as_echo_n "checking whether Qt5 should be enabled... " >&6; }
|
$as_echo_n "checking whether Qt4 should be enabled... " >&6; }
|
||||||
case "x$with_qt5" in #(
|
case "x$with_qt4" in #(
|
||||||
"xno") :
|
"xno") :
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||||
$as_echo "no" >&6; }
|
$as_echo "no" >&6; }
|
||||||
if test -n "$PKG_CONFIG" && \
|
if test -n "$PKG_CONFIG" && \
|
||||||
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Core >= 5.2.0\""; } >&5
|
||||||
|
($PKG_CONFIG --exists --print-errors "Qt5Core >= 5.2.0") 2>&5
|
||||||
|
ac_status=$?
|
||||||
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
||||||
|
test $ac_status = 0; }; then
|
||||||
|
|
||||||
|
if test -n "$QT_QMAKE"; then
|
||||||
|
pkg_cv_QT_QMAKE="$QT_QMAKE"
|
||||||
|
elif test -n "$PKG_CONFIG"; then
|
||||||
|
if test -n "$PKG_CONFIG" && \
|
||||||
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Core >= 5.2.0\""; } >&5
|
||||||
|
($PKG_CONFIG --exists --print-errors "Qt5Core >= 5.2.0") 2>&5
|
||||||
|
ac_status=$?
|
||||||
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
||||||
|
test $ac_status = 0; }; then
|
||||||
|
pkg_cv_QT_QMAKE=`$PKG_CONFIG --variable="host_bins" "Qt5Core >= 5.2.0" 2>/dev/null`
|
||||||
|
test "x$?" != "x0" && pkg_failed=yes
|
||||||
|
else
|
||||||
|
pkg_failed=yes
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
pkg_failed=untried
|
||||||
|
fi
|
||||||
|
QT_QMAKE=$pkg_cv_QT_QMAKE
|
||||||
|
|
||||||
|
if test "x$QT_QMAKE" = x""; then :
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
as_ac_File=`$as_echo "ac_cv_file_$QT_QMAKE/qmake" | $as_tr_sh`
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $QT_QMAKE/qmake" >&5
|
||||||
|
$as_echo_n "checking for $QT_QMAKE/qmake... " >&6; }
|
||||||
|
if eval \${$as_ac_File+:} false; then :
|
||||||
|
$as_echo_n "(cached) " >&6
|
||||||
|
else
|
||||||
|
test "$cross_compiling" = yes &&
|
||||||
|
as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
|
||||||
|
if test -r "$QT_QMAKE/qmake"; then
|
||||||
|
eval "$as_ac_File=yes"
|
||||||
|
else
|
||||||
|
eval "$as_ac_File=no"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
eval ac_res=\$$as_ac_File
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
||||||
|
$as_echo "$ac_res" >&6; }
|
||||||
|
if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
|
||||||
|
QT_QMAKE="$QT_QMAKE/qmake"
|
||||||
|
else
|
||||||
|
as_ac_File=`$as_echo "ac_cv_file_$QT_QMAKE/qmake-qt5" | $as_tr_sh`
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $QT_QMAKE/qmake-qt5" >&5
|
||||||
|
$as_echo_n "checking for $QT_QMAKE/qmake-qt5... " >&6; }
|
||||||
|
if eval \${$as_ac_File+:} false; then :
|
||||||
|
$as_echo_n "(cached) " >&6
|
||||||
|
else
|
||||||
|
test "$cross_compiling" = yes &&
|
||||||
|
as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
|
||||||
|
if test -r "$QT_QMAKE/qmake-qt5"; then
|
||||||
|
eval "$as_ac_File=yes"
|
||||||
|
else
|
||||||
|
eval "$as_ac_File=no"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
eval ac_res=\$$as_ac_File
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
||||||
|
$as_echo "$ac_res" >&6; }
|
||||||
|
if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
|
||||||
|
QT_QMAKE="$QT_QMAKE/qmake-qt5"
|
||||||
|
else
|
||||||
|
QT_QMAKE=""
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Qt5 qmake >= 5.2.0" >&5
|
||||||
|
$as_echo_n "checking for Qt5 qmake >= 5.2.0... " >&6; }
|
||||||
|
if test "x$QT_QMAKE" != "x"; then :
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_QMAKE" >&5
|
||||||
|
$as_echo "$QT_QMAKE" >&6; }
|
||||||
|
else
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
|
||||||
|
$as_echo "not found" >&6; }
|
||||||
|
|
||||||
|
fi
|
||||||
|
;; #(
|
||||||
|
"xyes") :
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||||
|
$as_echo "yes" >&6; }
|
||||||
|
if test -n "$PKG_CONFIG" && \
|
||||||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtCore >= 4.8.0\""; } >&5
|
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtCore >= 4.8.0\""; } >&5
|
||||||
($PKG_CONFIG --exists --print-errors "QtCore >= 4.8.0") 2>&5
|
($PKG_CONFIG --exists --print-errors "QtCore >= 4.8.0") 2>&5
|
||||||
ac_status=$?
|
ac_status=$?
|
||||||
@ -4556,105 +4649,12 @@ else
|
|||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
|
||||||
$as_echo "not found" >&6; }
|
$as_echo "not found" >&6; }
|
||||||
|
|
||||||
fi
|
|
||||||
;; #(
|
|
||||||
"xyes") :
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
||||||
$as_echo "yes" >&6; }
|
|
||||||
if test -n "$PKG_CONFIG" && \
|
|
||||||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Core >= 5.2.0\""; } >&5
|
|
||||||
($PKG_CONFIG --exists --print-errors "Qt5Core >= 5.2.0") 2>&5
|
|
||||||
ac_status=$?
|
|
||||||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
||||||
test $ac_status = 0; }; then
|
|
||||||
|
|
||||||
if test -n "$QT_QMAKE"; then
|
|
||||||
pkg_cv_QT_QMAKE="$QT_QMAKE"
|
|
||||||
elif test -n "$PKG_CONFIG"; then
|
|
||||||
if test -n "$PKG_CONFIG" && \
|
|
||||||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Core >= 5.2.0\""; } >&5
|
|
||||||
($PKG_CONFIG --exists --print-errors "Qt5Core >= 5.2.0") 2>&5
|
|
||||||
ac_status=$?
|
|
||||||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
||||||
test $ac_status = 0; }; then
|
|
||||||
pkg_cv_QT_QMAKE=`$PKG_CONFIG --variable="host_bins" "Qt5Core >= 5.2.0" 2>/dev/null`
|
|
||||||
test "x$?" != "x0" && pkg_failed=yes
|
|
||||||
else
|
|
||||||
pkg_failed=yes
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
pkg_failed=untried
|
|
||||||
fi
|
|
||||||
QT_QMAKE=$pkg_cv_QT_QMAKE
|
|
||||||
|
|
||||||
if test "x$QT_QMAKE" = x""; then :
|
|
||||||
|
|
||||||
fi
|
|
||||||
|
|
||||||
fi
|
|
||||||
|
|
||||||
as_ac_File=`$as_echo "ac_cv_file_$QT_QMAKE/qmake" | $as_tr_sh`
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $QT_QMAKE/qmake" >&5
|
|
||||||
$as_echo_n "checking for $QT_QMAKE/qmake... " >&6; }
|
|
||||||
if eval \${$as_ac_File+:} false; then :
|
|
||||||
$as_echo_n "(cached) " >&6
|
|
||||||
else
|
|
||||||
test "$cross_compiling" = yes &&
|
|
||||||
as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
|
|
||||||
if test -r "$QT_QMAKE/qmake"; then
|
|
||||||
eval "$as_ac_File=yes"
|
|
||||||
else
|
|
||||||
eval "$as_ac_File=no"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
eval ac_res=\$$as_ac_File
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
|
||||||
$as_echo "$ac_res" >&6; }
|
|
||||||
if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
|
|
||||||
QT_QMAKE="$QT_QMAKE/qmake"
|
|
||||||
else
|
|
||||||
as_ac_File=`$as_echo "ac_cv_file_$QT_QMAKE/qmake-qt5" | $as_tr_sh`
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $QT_QMAKE/qmake-qt5" >&5
|
|
||||||
$as_echo_n "checking for $QT_QMAKE/qmake-qt5... " >&6; }
|
|
||||||
if eval \${$as_ac_File+:} false; then :
|
|
||||||
$as_echo_n "(cached) " >&6
|
|
||||||
else
|
|
||||||
test "$cross_compiling" = yes &&
|
|
||||||
as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
|
|
||||||
if test -r "$QT_QMAKE/qmake-qt5"; then
|
|
||||||
eval "$as_ac_File=yes"
|
|
||||||
else
|
|
||||||
eval "$as_ac_File=no"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
eval ac_res=\$$as_ac_File
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
|
||||||
$as_echo "$ac_res" >&6; }
|
|
||||||
if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
|
|
||||||
QT_QMAKE="$QT_QMAKE/qmake-qt5"
|
|
||||||
else
|
|
||||||
QT_QMAKE=""
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Qt5 qmake >= 5.2.0" >&5
|
|
||||||
$as_echo_n "checking for Qt5 qmake >= 5.2.0... " >&6; }
|
|
||||||
if test "x$QT_QMAKE" != "x"; then :
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_QMAKE" >&5
|
|
||||||
$as_echo "$QT_QMAKE" >&6; }
|
|
||||||
else
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
|
|
||||||
$as_echo "not found" >&6; }
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
;; #(
|
;; #(
|
||||||
*) :
|
*) :
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_qt5" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_qt4" >&5
|
||||||
$as_echo "$with_qt5" >&6; }
|
$as_echo "$with_qt4" >&6; }
|
||||||
as_fn_error $? "Unknown option \"$with_qt5\". Use either \"yes\" or \"no\"." "$LINENO" 5 ;;
|
as_fn_error $? "Unknown option \"$with_qt4\". Use either \"yes\" or \"no\"." "$LINENO" 5 ;;
|
||||||
esac
|
esac
|
||||||
if test "x$QT_QMAKE" = "x"; then :
|
if test "x$QT_QMAKE" = "x"; then :
|
||||||
as_fn_error $? "Could not find qmake" "$LINENO" 5
|
as_fn_error $? "Could not find qmake" "$LINENO" 5
|
||||||
|
20
configure.ac
20
configure.ac
@ -12,11 +12,11 @@ AM_INIT_AUTOMAKE
|
|||||||
|
|
||||||
# Define --wth-* and --enable-* arguments
|
# Define --wth-* and --enable-* arguments
|
||||||
|
|
||||||
AC_ARG_WITH(qt5,
|
AC_ARG_WITH(qt4,
|
||||||
[AS_HELP_STRING([--with-qt5],
|
[AS_HELP_STRING([--with-qt4],
|
||||||
[Compile using Qt5 (default=no)])],
|
[Compile using Qt4 (default=no)])],
|
||||||
[],
|
[],
|
||||||
[with_qt5=no])
|
[with_qt4=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],
|
||||||
@ -122,16 +122,16 @@ AS_CASE(["x$enable_webui"],
|
|||||||
[AC_MSG_RESULT([$enable_webui])
|
[AC_MSG_RESULT([$enable_webui])
|
||||||
AC_MSG_ERROR([Unknown option "$enable_webui". Use either "yes" or "no".])])
|
AC_MSG_ERROR([Unknown option "$enable_webui". Use either "yes" or "no".])])
|
||||||
|
|
||||||
AC_MSG_CHECKING([whether Qt5 should be enabled])
|
AC_MSG_CHECKING([whether Qt4 should be enabled])
|
||||||
AS_CASE(["x$with_qt5"],
|
AS_CASE(["x$with_qt4"],
|
||||||
["xno"],
|
["xno"],
|
||||||
[AC_MSG_RESULT([no])
|
[AC_MSG_RESULT([no])
|
||||||
FIND_QT4()],
|
FIND_QT5()],
|
||||||
["xyes"],
|
["xyes"],
|
||||||
[AC_MSG_RESULT([yes])
|
[AC_MSG_RESULT([yes])
|
||||||
FIND_QT5()],
|
FIND_QT4()],
|
||||||
[AC_MSG_RESULT([$with_qt5])
|
[AC_MSG_RESULT([$with_qt4])
|
||||||
AC_MSG_ERROR([Unknown option "$with_qt5". Use either "yes" or "no".])])
|
AC_MSG_ERROR([Unknown option "$with_qt4". Use either "yes" or "no".])])
|
||||||
AS_IF([test "x$QT_QMAKE" = "x"],
|
AS_IF([test "x$QT_QMAKE" = "x"],
|
||||||
[AC_MSG_ERROR([Could not find qmake])
|
[AC_MSG_ERROR([Could not find qmake])
|
||||||
])
|
])
|
||||||
|
Loading…
Reference in New Issue
Block a user