Browse Source

Fix configure script

adaptive-webui-19844
Christophe Dumez 14 years ago
parent
commit
b09b1bb285
  1. 37
      configure

37
configure vendored

@ -18,23 +18,20 @@ Main options:
--help This help text. --help This help text.
Dependency options: Dependency options:
--enable-debug Enable debug mode
--disable-gui Disable qBittorrent --disable-gui Disable qBittorrent
Graphical user interface for Graphical user interface for
headless running headless running
--enable-debug Enable debug mode
--with-libboost-inc=[path] Path to libboost include --with-libboost-inc=[path] Path to libboost include
files files
--with-libboost-lib=[path] Path to libboost library --with-libboost-lib=[path] Path to libboost library
files files
--disable-libnotify Disable use of libnotify --disable-libnotify Disable use of libnotify
--disable-geoip-database Disable use of geoip-database
--with-geoip-database-embedded Geoip Database will be --with-geoip-database-embedded Geoip Database will be
embedded in qBittorrent embedded in qBittorrent
executable (please follow executable (please follow
instructions in instructions in
src/geoip/README) src/geoip/README)
--disable-qtsingleapplication Disable use of
qtsingleapplication
--with-qtsingleapplication=[system|shipped] Use the shipped --with-qtsingleapplication=[system|shipped] Use the shipped
qtsingleapplication library qtsingleapplication library
or the system one or the system one
@ -154,13 +151,13 @@ while [ $# -gt 0 ]; do
shift shift
;; ;;
--disable-gui) --enable-debug)
QC_DISABLE_GUI="Y" QC_ENABLE_DEBUG="Y"
shift shift
;; ;;
--enable-debug) --disable-gui)
QC_ENABLE_DEBUG="Y" QC_DISABLE_GUI="Y"
shift shift
;; ;;
@ -179,21 +176,11 @@ while [ $# -gt 0 ]; do
shift shift
;; ;;
--disable-geoip-database)
QC_DISABLE_geoip_database="Y"
shift
;;
--with-geoip-database-embedded) --with-geoip-database-embedded)
QC_WITH_GEOIP_DATABASE_EMBEDDED="Y" QC_WITH_GEOIP_DATABASE_EMBEDDED="Y"
shift shift
;; ;;
--disable-qtsingleapplication)
QC_DISABLE_qtsingleapplication="Y"
shift
;;
--with-qtsingleapplication=*) --with-qtsingleapplication=*)
QC_WITH_QTSINGLEAPPLICATION=$optarg QC_WITH_QTSINGLEAPPLICATION=$optarg
shift shift
@ -220,14 +207,12 @@ echo PREFIX=$PREFIX
echo BINDIR=$BINDIR echo BINDIR=$BINDIR
echo DATADIR=$DATADIR echo DATADIR=$DATADIR
echo EX_QTDIR=$EX_QTDIR echo EX_QTDIR=$EX_QTDIR
echo QC_DISABLE_GUI=$QC_DISABLE_GUI
echo QC_ENABLE_DEBUG=$QC_ENABLE_DEBUG echo QC_ENABLE_DEBUG=$QC_ENABLE_DEBUG
echo QC_DISABLE_GUI=$QC_DISABLE_GUI
echo QC_WITH_LIBBOOST_INC=$QC_WITH_LIBBOOST_INC echo QC_WITH_LIBBOOST_INC=$QC_WITH_LIBBOOST_INC
echo QC_WITH_LIBBOOST_LIB=$QC_WITH_LIBBOOST_LIB echo QC_WITH_LIBBOOST_LIB=$QC_WITH_LIBBOOST_LIB
echo QC_DISABLE_libnotify=$QC_DISABLE_libnotify echo QC_DISABLE_libnotify=$QC_DISABLE_libnotify
echo QC_DISABLE_geoip_database=$QC_DISABLE_geoip_database
echo QC_WITH_GEOIP_DATABASE_EMBEDDED=$QC_WITH_GEOIP_DATABASE_EMBEDDED echo QC_WITH_GEOIP_DATABASE_EMBEDDED=$QC_WITH_GEOIP_DATABASE_EMBEDDED
echo QC_DISABLE_qtsingleapplication=$QC_DISABLE_qtsingleapplication
echo QC_WITH_QTSINGLEAPPLICATION=$QC_WITH_QTSINGLEAPPLICATION echo QC_WITH_QTSINGLEAPPLICATION=$QC_WITH_QTSINGLEAPPLICATION
echo echo
fi fi
@ -334,8 +319,8 @@ cat >$1/modules.cpp <<EOT
/* /*
-----BEGIN QCMOD----- -----BEGIN QCMOD-----
name: Qt >= 4.5 name: Qt >= 4.5
arg: disable-gui, Disable qBittorrent Graphical user interface for headless running
arg: enable-debug, Enable debug mode arg: enable-debug, Enable debug mode
arg: disable-gui, Disable qBittorrent Graphical user interface for headless running
-----END QCMOD----- -----END QCMOD-----
*/ */
class qc_qt4 : public ConfObj class qc_qt4 : public ConfObj
@ -666,10 +651,10 @@ cat >$1/modules_new.cpp <<EOT
o->required = false; o->required = false;
o->disabled = false; o->disabled = false;
o = new qc_geoip_database(conf); o = new qc_geoip_database(conf);
o->required = false; o->required = true;
o->disabled = false; o->disabled = false;
o = new qc_qtsingleapplication(conf); o = new qc_qtsingleapplication(conf);
o->required = false; o->required = true;
o->disabled = false; o->disabled = false;
EOT EOT
@ -1616,14 +1601,12 @@ export PREFIX
export BINDIR export BINDIR
export DATADIR export DATADIR
export EX_QTDIR export EX_QTDIR
export QC_DISABLE_GUI
export QC_ENABLE_DEBUG export QC_ENABLE_DEBUG
export QC_DISABLE_GUI
export QC_WITH_LIBBOOST_INC export QC_WITH_LIBBOOST_INC
export QC_WITH_LIBBOOST_LIB export QC_WITH_LIBBOOST_LIB
export QC_DISABLE_libnotify export QC_DISABLE_libnotify
export QC_DISABLE_geoip_database
export QC_WITH_GEOIP_DATABASE_EMBEDDED export QC_WITH_GEOIP_DATABASE_EMBEDDED
export QC_DISABLE_qtsingleapplication
export QC_WITH_QTSINGLEAPPLICATION export QC_WITH_QTSINGLEAPPLICATION
export QC_VERBOSE export QC_VERBOSE
rm -rf .qconftemp rm -rf .qconftemp

Loading…
Cancel
Save