qt -> tqt conversion:

QTDIR -> TQTDIR
QTDOC -> TQTDOC
INCDIR_QT -> INCDIR_TQT
LIBDIR_QT -> LIBDIR_TQT
QT_INC -> TQT_INC
QT_LIB -> TQT_LIB

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/1/head
Michele Calgaro 6 years ago
parent 0c329722a5
commit c80676841c
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

42
configure vendored

@ -20,7 +20,7 @@ EOT
while [ $# -gt 0 ]; do while [ $# -gt 0 ]; do
case "$1" in case "$1" in
--qtdir=*) --qtdir=*)
QTDIR=`expr "${1}" : "--qtdir=\(.*\)"` TQTDIR=`expr "${1}" : "--qtdir=\(.*\)"`
shift shift
;; ;;
@ -48,7 +48,7 @@ echo "Configuring tqca-tls ..."
if [ "$QC_DEBUG" = "Y" ]; then if [ "$QC_DEBUG" = "Y" ]; then
echo echo
echo QTDIR=$QTDIR echo TQTDIR=$TQTDIR
echo QC_WITH_OPENSSL_INC=$QC_WITH_OPENSSL_INC echo QC_WITH_OPENSSL_INC=$QC_WITH_OPENSSL_INC
echo QC_WITH_OPENSSL_LIB=$QC_WITH_OPENSSL_LIB echo QC_WITH_OPENSSL_LIB=$QC_WITH_OPENSSL_LIB
echo echo
@ -56,20 +56,20 @@ fi
printf "Verifying TQt 3.x Multithreaded (MT) build environment ... " printf "Verifying TQt 3.x Multithreaded (MT) build environment ... "
if [ -z "$QTDIR" ]; then if [ -z "$TQTDIR" ]; then
if [ "$QC_DEBUG" = "Y" ]; then if [ "$QC_DEBUG" = "Y" ]; then
echo \$QTDIR not set... trying to find Qt manually echo \$TQTDIR not set... trying to find Qt manually
fi fi
for p in /usr/lib/tqt /usr/share/tqt /usr/share/tqt3 /usr/local/lib/tqt /usr/local/share/tqt /usr/lib/tqt3 /usr/local/lib/tqt3 /usr/lib/qt /usr/share/qt /usr/share/qt3 /usr/local/lib/qt /usr/local/share/qt /usr/lib/qt3 /usr/local/lib/qt3 /usr/lib64/tqt /usr/local/lib64/tqt /usr/lib64/tqt3 /usr/local/lib64/tqt3 /usr/lib64/qt /usr/local/lib64/qt /usr/lib64/qt3 /usr/local/lib64/qt3 /usr/X11R6/share/qt /usr/qt/3 ; do for p in /usr/lib/tqt /usr/share/tqt /usr/share/tqt3 /usr/local/lib/tqt /usr/local/share/tqt /usr/lib/tqt3 /usr/local/lib/tqt3 /usr/lib/qt /usr/share/qt /usr/share/qt3 /usr/local/lib/qt /usr/local/share/qt /usr/lib/qt3 /usr/local/lib/qt3 /usr/lib64/tqt /usr/local/lib64/tqt /usr/lib64/tqt3 /usr/local/lib64/tqt3 /usr/lib64/qt /usr/local/lib64/qt /usr/lib64/qt3 /usr/local/lib64/qt3 /usr/X11R6/share/qt /usr/qt/3 ; do
if [ -d "$p/mkspecs" ]; then if [ -d "$p/mkspecs" ]; then
QTDIR=$p TQTDIR=$p
break; break;
fi; fi;
done done
if [ -z "$QTDIR" ]; then if [ -z "$TQTDIR" ]; then
echo fail echo fail
echo echo
echo Unable to find Qt 'mkspecs'. Please set QTDIR echo Unable to find Qt 'mkspecs'. Please set TQTDIR
echo manually. Perhaps you need to install Qt 3 echo manually. Perhaps you need to install Qt 3
echo development utilities. You may download them either echo development utilities. You may download them either
echo from the vendor of your operating system or from echo from the vendor of your operating system or from
@ -79,9 +79,9 @@ if [ -z "$QTDIR" ]; then
fi fi
fi fi
if [ ! -x "$QTDIR/bin/tqmake" ]; then if [ ! -x "$TQTDIR/bin/tqmake" ]; then
if [ "$QC_DEBUG" = "Y" ]; then if [ "$QC_DEBUG" = "Y" ]; then
echo Warning: tqmake not in \$QTDIR/bin/tqmake echo Warning: tqmake not in \$TQTDIR/bin/tqmake
echo trying to find it in \$PATH echo trying to find it in \$PATH
fi fi
qm=`type -p tqmake` qm=`type -p tqmake`
@ -93,15 +93,15 @@ if [ ! -x "$QTDIR/bin/tqmake" ]; then
echo fail echo fail
echo echo
echo Sorry, you seem to have a very unusual setup, echo Sorry, you seem to have a very unusual setup,
echo or I missdetected \$QTDIR=$QTDIR echo or I missdetected \$TQTDIR=$TQTDIR
echo echo
echo Please set \$QTDIR manually and make sure that echo Please set \$TQTDIR manually and make sure that
echo \$QTDIR/bin/tqmake exists. echo \$TQTDIR/bin/tqmake exists.
echo echo
exit 1; exit 1;
fi fi
else else
qm=$QTDIR/bin/tqmake qm=$TQTDIR/bin/tqmake
fi fi
gen_files() { gen_files() {
@ -523,7 +523,7 @@ SOURCES += conf.cpp
EOT EOT
} }
export QTDIR export TQTDIR
export QC_WITH_OPENSSL_INC export QC_WITH_OPENSSL_INC
export QC_WITH_OPENSSL_LIB export QC_WITH_OPENSSL_LIB
rm -rf .qconftemp rm -rf .qconftemp
@ -532,8 +532,8 @@ rm -rf .qconftemp
gen_files .qconftemp gen_files .qconftemp
cd .qconftemp cd .qconftemp
$qm conf.pro >/dev/null $qm conf.pro >/dev/null
QTDIR=$QTDIR make clean >/dev/null 2>&1 TQTDIR=$TQTDIR make clean >/dev/null 2>&1
QTDIR=$QTDIR make >../conf.log 2>&1 TQTDIR=$TQTDIR make >../conf.log 2>&1
) )
if [ "$?" != "0" ]; then if [ "$?" != "0" ]; then
@ -542,12 +542,12 @@ if [ "$?" != "0" ]; then
echo echo
echo "There was an error compiling 'conf'. Be sure you have a proper" echo "There was an error compiling 'conf'. Be sure you have a proper"
echo "TQt 3.x Multithreaded (MT) build environment set up." echo "TQt 3.x Multithreaded (MT) build environment set up."
if [ ! -f "$QTDIR/lib/libtqt-mt.so.3" ]; then if [ ! -f "$TQTDIR/lib/libtqt-mt.so.3" ]; then
if [ ! -f "$QTDIR/lib64/libtqt-mt.so.3" ]; then if [ ! -f "$TQTDIR/lib64/libtqt-mt.so.3" ]; then
echo echo
echo "One possible reason is that you don't have" echo "One possible reason is that you don't have"
echo "libtqt-mt.so.3 installed in $QTDIR/lib/" echo "libtqt-mt.so.3 installed in $TQTDIR/lib/"
echo "or $QTDIR/lib64/." echo "or $TQTDIR/lib64/."
fi fi
fi fi
echo echo
@ -586,7 +586,7 @@ if [ "$?" != "0" ]; then
exit 1; exit 1;
fi fi
cat >Makefile.tmp <<EOT cat >Makefile.tmp <<EOT
export QTDIR = $QTDIR export TQTDIR = $TQTDIR
EOT EOT
cat Makefile >> Makefile.tmp cat Makefile >> Makefile.tmp
rm -f Makefile rm -f Makefile

Loading…
Cancel
Save