[Fedora-packaging] Re: moc, moc-qt4?

Enrico Scholz enrico.scholz at informatik.tu-chemnitz.de
Thu Jun 26 14:36:39 UTC 2008


Chris Spencer <spencercw at googlemail.com> writes:

> The configure script checks for the program 'moc' and fails if it
> doesn't find it. I have installed the qt-devel package, but for some
> reason it installs moc as moc-qt4, no symlink or anything. Can anyone
> explain to me why this is, and possibly suggest a suitable workaround?

Use

| PKG_CHECK_MODULES(QT, Qt)
| QT4_BINDIR=`$PKG_CONFIG Qt --variable bindir`
| AC_CHECK_TOOLS(MOC, [moc],, [$QT4_BINDIR:$PATH])

This gives most flexibility by using proper defaults while allowing
users to override detected tool by setting $MOC environment/autoconf
variable.



Enrico




More information about the Fedora-packaging mailing list