Qt4 Detection: Use uic-qt4 and moc-qt4 if disponible. Will help ppl that have qt3...
authorJean-Baptiste Kempf <jb@videolan.org>
Thu, 10 May 2007 18:00:12 +0000 (18:00 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 10 May 2007 18:00:12 +0000 (18:00 +0000)
configure.ac

index e28f055..a6b3a85 100644 (file)
@@ -4928,9 +4928,9 @@ AS_IF([test "${enable_qt4}" != "no" &&
       enableqt4=true
       VLC_ADD_LDFLAGS([qt4],[$QT4_LIBS])
       VLC_ADD_CXXFLAGS([qt4],[$QT4_CFLAGS])
-      AC_PATH_PROG(MOC, moc, moc,`$PKG_CONFIG --variable=exec_prefix QtCore`/bin)
+      AC_PATH_PROG(MOC, moc-qt4, moc,`$PKG_CONFIG --variable=exec_prefix QtCore`/bin)
       AC_PATH_PROG(RCC, rcc, rcc,`$PKG_CONFIG --variable=exec_prefix QtCore`/bin)
-      AC_PATH_PROG(UIC, uic, uic,`$PKG_CONFIG --variable=exec_prefix QtCore`/bin)
+      AC_PATH_PROG(UIC, uic-qt4, uic,`$PKG_CONFIG --variable=exec_prefix QtCore`/bin)
       ],
       AS_IF([test "${enable_qt4}" = "yes"],[
        AC_MSG_ERROR(QT4 library not found)