[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: Autoconf: Checking for Qt
From:       Martin Konold <konold () alpha ! tat ! physik ! uni-tuebingen ! de>
Date:       2000-04-02 20:49:19
[Download RAW message or body]

On Sun, 2 Apr 2000, Waldo Bastian wrote:

> Hiya,
> 
> I would like to change something about the way we check for Qt.
> 
> I want to solve the following problem:
> On a standard distribution with both KDE 1.x and KDE 2.0 autoconf should be
> able to find the correct Qt-lib, Qt-include-dir and Qt-moc without any QTDIR
> set.
> 
> On SuSE and I believe Caldera as well, QT1.x will be installed in /usr/lib/qt
> and QT2.x will be installed in /usr/lib/qt2. If we configure for KDE2
> applications we should check /usr/lib/qt2 before we check /usr/lib/qt or any
> other default places. If we configure for KDE1.x we shouldn't check
> /usr/lib/qt2.
> 
> Is it correct that the autoconf stuff supports KDE1.x as well?
> 
> Currently, without QTDIR set, we pick up Qt1.x before finding Qt2.x.

Imho it is much better to look up a uniq function in each lib and therefor
avoid the need for heuristics.

something like

AC_CHECK_LIB(/path/libqt, uniq-function, -L/path/qt )

In general it is better to check for the functionality needed instead of
versions or library names.

Regards,
-- martin

// Martin Konold, Stauffenbergstr. 107, 72074 Tuebingen, Germany  //   
KDE:  The most advanced GUI for a reliable OS.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic