dnl Check if it possible to do a pkg-config
QT4_DO_PKG_CONFIG
- if test -n "$qt4_cv_dir" -o -n "$qt4_cv_includes" -o -n "$qt4_cv_libraries"; then
- dnl The user gave commandline arguments, override pkg-config
+ if test "$pkg_failed" != "no" ; then
QT4_DO_MANUAL_CONFIG
- else
- if test "$pkg_failed" != "no" ; then
- QT4_DO_MANUAL_CONFIG
- fi
fi
AC_PATH_PROGS(MOC4, [moc-qt4 moc],[],$qt4_cv_bin:$PATH)
AC_PATH_PROGS(UIC4, [uic-qt4 uic],[],$qt4_cv_bin:$PATH)
PKG_PROG_PKG_CONFIG
save_PKG_CONFIG_PATH=$PKG_CONFIG_PATH
if test -n "$qt4_cv_dir" ; then
- PKG_CONFIG_PATH=$qt4_cv_dir/lib:$PKG_CONFIG_PATH
+ PKG_CONFIG_PATH=$qt4_cv_dir/lib:$qt4_cv_dir/lib/pkgconfig:$PKG_CONFIG_PATH
export PKG_CONFIG_PATH
fi
PKG_CHECK_MODULES(QT4_CORE, QtCore,,[:])
- if test "$pkg_failed" == "no" ; then
+ if test "$pkg_failed" = "no" ; then
QT4_CORE_INCLUDES=$QT4_CORE_CFLAGS
AC_SUBST(QT4_CORE_INCLUDES)
QT4_CORE_LDFLAGS=`$PKG_CONFIG --libs-only-L QtCore`
AC_SUBST(QT4_CORE_LIB)
fi
PKG_CHECK_MODULES(QT4_FRONTEND, QtCore QtGui,,[:])
- if test "$pkg_failed" == "no" ; then
+ if test "$pkg_failed" = "no" ; then
QT4_INCLUDES=$QT4_FRONTEND_CFLAGS
dnl QT4_LDFLAGS=$QT4_FRONTEND_LIBS
QT4_LDFLAGS=`$PKG_CONFIG --libs-only-L QtCore QtGui`
QT4_CHECK_COMPILE
- if test -n "$qt4_cv_libname"; then
- QT4_LIB=$qt4_cv_libname;
- fi
+ QT4_LIB=$qt4_cv_libname;
AC_SUBST(QT4_LIB)
AC_SUBST(QT4_CORE_LIB)