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 ea7531c73c
commit fa7665909d
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

42
configure vendored

@ -22,7 +22,7 @@ while [ $# -gt 0 ]; do
;; ;;
--qtdir=*) --qtdir=*)
QTDIR=`expr "${1}" : "--qtdir=\(.*\)"` TQTDIR=`expr "${1}" : "--qtdir=\(.*\)"`
shift shift
;; ;;
@ -42,26 +42,26 @@ echo "Configuring TQt Cryptographic Architecture (QCA) ..."
if [ "$QC_DEBUG" = "Y" ]; then if [ "$QC_DEBUG" = "Y" ]; then
echo echo
echo PREFIX=$PREFIX echo PREFIX=$PREFIX
echo QTDIR=$QTDIR echo TQTDIR=$TQTDIR
echo echo
fi 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
@ -71,9 +71,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`
@ -85,15 +85,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() {
@ -430,15 +430,15 @@ EOT
} }
export PREFIX export PREFIX
export QTDIR export TQTDIR
rm -rf .qconftemp rm -rf .qconftemp
( (
mkdir .qconftemp mkdir .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
@ -447,12 +447,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
@ -487,7 +487,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