Browse Source

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 4 years ago committed by Slávek Banko
parent
commit
7b38d20e88
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668
  1. 34
      acinclude.m4.in

34
acinclude.m4.in

@ -1081,11 +1081,9 @@ EOF
AC_DEFUN([KDE_USE_TQT],
[
#if test -z "$1"; then
# Current default TQt version: 3.3
kde_tqtver=3
kde_tqtsubver=3
kde_tqtver=0
kde_tqtsubver=0
AC_LANG_SAVE
AC_LANG_CPLUSPLUS
ac_cxxflags_safe="$CXXFLAGS"
@ -1094,7 +1092,7 @@ AC_DEFUN([KDE_USE_TQT],
#define TQT_VERSION_ONLY
#include <tqt.h>
#undef TQT_VERSION_ONLY
#ifdef USE_TQT4
#ifdef USE_QT4
choke me
#endif
], ,
@ -1104,21 +1102,13 @@ AC_DEFUN([KDE_USE_TQT],
AC_LANG_RESTORE
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
#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 "$kde_tqtver" = "3"; then
if test $kde_tqtsubver -gt 0; then
@ -1949,6 +1939,11 @@ if $PKG_CONFIG --exists tqt-mt ; then
fi
fi
LDFLAGS=$kde_ldflags_safe
LIBS=$kde_libs_safe
CXXFLAGS=$kde_cxxflags_safe
])
AC_MSG_RESULT($kde_cv_have_kdetqtaddon)
if test "$kde_cv_have_kdetqtaddon" = "no"; then
@ -2003,6 +1998,7 @@ AC_DEFUN([AC_PATH_KDE],
fi
],
[
ac_use_path_checking="default"
]
)

Loading…
Cancel
Save