The moc executable used for Qt may be installed under different names
in different places. Try to identify one that matches the version of
Qt that is being used.
Signed-off-by: Peter Kjellerstedt <pkj@axis.com>
[yann.morin.1998@free.fr: fix MOC under-quotation, fix code layout]
Signed-off-by: "Yann E. MORIN" <yann.morin@orange.com>
AS_IF(
[test "$has_qt" = "no" ],
- [enable_qconf=no])
+ [enable_qconf=no],
+ [QT4_BINDIR=`$PKG_CONFIG Qt --variable bindir`
+ AC_PATH_PROGS(
+ [MOC],
+ [moc-qt4 moc],
+ [moc],
+ [$QT4_BINDIR:$PATH])])
#----------------------------------------
# Per-frontends extra libraries
$(qt4_LIBS) $(qconf_EXTRA_LIBS)
.h.moc:
- moc -i $< -o $@
+ $(MOC) -i $< -o $@