Fixed following issues:

- bug in original admin module with wrong "fi" position (by Slávek
Banko)
- default settings for path check
- test for tqt3 detection

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/2/head
Michele Calgaro 6 years ago committed by Slávek Banko
parent b3fb34c0ef
commit 7b38d20e88
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -1081,10 +1081,8 @@ EOF
AC_DEFUN([KDE_USE_TQT], AC_DEFUN([KDE_USE_TQT],
[ [
#if test -z "$1"; then kde_tqtver=0
# Current default TQt version: 3.3 kde_tqtsubver=0
kde_tqtver=3
kde_tqtsubver=3
AC_LANG_SAVE AC_LANG_SAVE
AC_LANG_CPLUSPLUS AC_LANG_CPLUSPLUS
@ -1094,7 +1092,7 @@ AC_DEFUN([KDE_USE_TQT],
#define TQT_VERSION_ONLY #define TQT_VERSION_ONLY
#include <tqt.h> #include <tqt.h>
#undef TQT_VERSION_ONLY #undef TQT_VERSION_ONLY
#ifdef USE_TQT4 #ifdef USE_QT4
choke me choke me
#endif #endif
], , ], ,
@ -1104,21 +1102,13 @@ AC_DEFUN([KDE_USE_TQT],
AC_LANG_RESTORE AC_LANG_RESTORE
if test "$kde_tqtver" = "3"; then if test "$kde_tqtver" = "3"; then
AC_MSG_RESULT(Detected TQt3...) AC_MSG_RESULT(Detected TQt3.)
# Current default TQt version: 3.3
kde_tqtsubver=3
else
AC_MSG_ERROR(TQt3 could not be detected!)
fi fi
#else
# kde_tqtsubver=`echo "$1" | sed -e 's#[0-9][0-9]*\.\([0-9][0-9]*\).*#\1#'`
# # following is the check if subversion isnt found in passed argument
# if test "$kde_tqtsubver" = "$1"; then
# kde_tqtsubver=1
# fi
# kde_tqtver=`echo "$1" | sed -e 's#^\([0-9][0-9]*\)\..*#\1#'`
# if test "$kde_tqtver" = "1"; then
# kde_tqtsubver=42
# fi
#fi
if test -z "$2"; then if test -z "$2"; then
if test "$kde_tqtver" = "3"; then if test "$kde_tqtver" = "3"; then
if test $kde_tqtsubver -gt 0; then if test $kde_tqtsubver -gt 0; then
@ -1949,6 +1939,11 @@ if $PKG_CONFIG --exists tqt-mt ; then
fi fi
fi fi
LDFLAGS=$kde_ldflags_safe
LIBS=$kde_libs_safe
CXXFLAGS=$kde_cxxflags_safe
])
AC_MSG_RESULT($kde_cv_have_kdetqtaddon) AC_MSG_RESULT($kde_cv_have_kdetqtaddon)
if test "$kde_cv_have_kdetqtaddon" = "no"; then if test "$kde_cv_have_kdetqtaddon" = "no"; then
@ -2003,6 +1998,7 @@ AC_DEFUN([AC_PATH_KDE],
fi fi
], ],
[ [
ac_use_path_checking="default"
] ]
) )

Loading…
Cancel
Save