|
|
|
@ -128,13 +128,13 @@ AC_SUBST(AM_CXXFLAGS) |
|
|
|
|
AC_SUBST(AM_CPPFLAGS) |
|
|
|
|
AC_SUBST(LIBS) |
|
|
|
|
# Qt Environment |
|
|
|
|
AC_MSG_CHECKING(QT4 directory) |
|
|
|
|
AC_MSG_CHECKING(QT directory) |
|
|
|
|
QTDIR="no" |
|
|
|
|
AC_ARG_WITH([qt-dir], |
|
|
|
|
AC_HELP_STRING([--with-qt-dir=/path/to/Qt4], |
|
|
|
|
[to specify the path to the Qt4 directory.]), |
|
|
|
|
AC_HELP_STRING([--with-qt-dir=/path/to/Qt], |
|
|
|
|
[to specify the path to the Qt directory.]), |
|
|
|
|
[QTPATHS="$withval"], |
|
|
|
|
[QTPATHS="/usr/include/qt4 /usr/local/include/qt4 /opt/include/qt4 /opt/local/include/qt4 /opt/local/libexec/qt4-mac/include /usr/include /usr/local/include /opt/include /opt/local/include"]) |
|
|
|
|
[QTPATHS="/usr/include /usr/local/include /opt/include /opt/local/include /usr/include/qt4 /usr/local/include/qt4 /opt/include/qt4 /opt/local/include/qt4 /opt/local/libexec/qt4-mac/include"]) |
|
|
|
|
for x in $QTPATHS; do |
|
|
|
|
if test -d $x/QtCore ; then |
|
|
|
|
QTINCDIR=$x |
|
|
|
@ -181,15 +181,15 @@ else |
|
|
|
|
AC_HELP_STRING([--with-moc=/path/to/moc], |
|
|
|
|
[to specify the path to qt moc.]), |
|
|
|
|
[MOC="$withval" |
|
|
|
|
RCC="$(dirname $withval")/rcc" |
|
|
|
|
UIC="$(dirname $withval")/uic" |
|
|
|
|
LRELEASE="$(dirname $withval")/lrelease" |
|
|
|
|
LUPDATE="$(dirname $withval")/lupdate"], |
|
|
|
|
[MOC="" |
|
|
|
|
RCC="" |
|
|
|
|
UIC="" |
|
|
|
|
LRELEASE="" |
|
|
|
|
LUPDATE=""]) |
|
|
|
|
RCC="$(dirname $withval)/rcc" |
|
|
|
|
UIC="$(dirname $withval)/uic" |
|
|
|
|
LRELEASE="$(dirname $withval)/lrelease" |
|
|
|
|
LUPDATE="$(dirname $withval)/lupdate"], |
|
|
|
|
[MOC="${QTDIR}/bin/moc" |
|
|
|
|
RCC="${QTDIR}/bin/rcc" |
|
|
|
|
UIC="${QTDIR}/bin/uic" |
|
|
|
|
LRELEASE="${QTDIR}/bin/lrelease" |
|
|
|
|
LUPDATE="${QTDIR}/bin/lupdate"]) |
|
|
|
|
AC_CHECK_PROGS([MOC], ["$MOC" moc moc-qt4 moc-mac]) |
|
|
|
|
test -n "$MOC" || AC_MSG_ERROR([moc for Qt not found!]) |
|
|
|
|
AC_SUBST(MOC) |
|
|
|
|