Commit 5019f45d authored by Jean-Paul Saman's avatar Jean-Paul Saman

Fix detection of QT Embedded development headers.

parent 9d2e4900
This diff is collapsed.
...@@ -1226,11 +1226,11 @@ dnl (disabled by default) ...@@ -1226,11 +1226,11 @@ dnl (disabled by default)
dnl dnl
AC_ARG_ENABLE(qte, AC_ARG_ENABLE(qte,
[ --enable-qte QT Embedded support (default disabled)]) [ --enable-qte QT Embedded support (default disabled)])
if test "x${enable_qte}" != "xno" if test "x${enable_qte}" = "xyes"
then then
AC_ARG_WITH(qte, AC_ARG_WITH(qte,
[ --with-qte=PATH Qt Embedded headers and libraries]) [ --with-qte=PATH Qt Embedded headers and libraries])
if test "x${with_qte}" = "x" if test "x${with_qte}" = "xyes" -a "x${with_qte}" != "x"
then then
test_LDFLAGS="-L${QTDIR}/lib" test_LDFLAGS="-L${QTDIR}/lib"
test_CFLAGS="-I${QTDIR}/include" test_CFLAGS="-I${QTDIR}/include"
...@@ -1240,16 +1240,12 @@ then ...@@ -1240,16 +1240,12 @@ then
fi fi
CPPFLAGS="${save_CPPFLAGS} ${test_CFLAGS}" CPPFLAGS="${save_CPPFLAGS} ${test_CFLAGS}"
AC_CHECK_HEADERS(qt.h, [ AC_CHECK_HEADERS(qte.h, [
qte_CFLAGS="${qte_CFLAGS} ${test_CFLAGS} -DQT_QWS_IPAQ -DQWS -fno-exceptions -fno-rtti" qte_CFLAGS="${qte_CFLAGS} ${test_CFLAGS} -DQT_QWS_IPAQ -DQWS -fno-exceptions -fno-rtti"
qte_LDFLAGS="${qte_LDFLAGS} ${test_LDFLAGS} -lqpe -lqte" qte_LDFLAGS="${qte_LDFLAGS} ${test_LDFLAGS} -lqpe -lqte"
if test "x${with_qte}" = "x"
then
PLUGINS="${PLUGINS} qte" PLUGINS="${PLUGINS} qte"
else ],
BUILTINS="${BUILTINS} qte" [ AC_MSG_ERROR([echo "Cannot find QT Embedded development headers."]) ] )
fi
])
CPPFLAGS="${save_CPPFLAGS}" CPPFLAGS="${save_CPPFLAGS}"
fi fi
...@@ -1650,16 +1646,29 @@ AC_ARG_ENABLE(opie, ...@@ -1650,16 +1646,29 @@ AC_ARG_ENABLE(opie,
test_LDFLAGS="-L${with_qte}/lib" test_LDFLAGS="-L${with_qte}/lib"
test_CFLAGS="-I${with_qte}/include" test_CFLAGS="-I${with_qte}/include"
fi fi
ac_cv_qte_headers=yes
CPPFLAGS="${save_CPPFLAGS} ${test_CFLAGS}"
AC_CHECK_HEADERS(qte.h, [
test_CFLAGS="${test_CFLAGS} -DQT_QWS_IPAQ -DQWS -fno-exceptions -fno-rtti"
test_LDFLAGS="${test_LDFLAGS} -lqpe -lqte"
],
[ ac_cv_qte_headers=no
AC_MSG_ERROR([echo "Cannot find QT Embedded development headers."])
]
)
CPPFLAGS="${save_CPPFLAGS}"
if test x${ac_cv_qte_headers} = "xyes"
then
PLUGINS="${PLUGINS} opie" PLUGINS="${PLUGINS} opie"
opie_LDFLAGS="${opie_LDFLAGS} ${test_LDFLAGS} -lqpe -lqte" opie_LDFLAGS="${opie_LDFLAGS} ${test_LDFLAGS}"
opie_CFLAGS="${opie_CFLAGS} ${test_CFLAGS}-DQT_QWS_IPAQ -DQWS -fno-exceptions -fno-rtti" opie_CFLAGS="${opie_CFLAGS} ${test_CFLAGS}"
if test -x ${QTDIR}/bin/moc if test -x ${QTDIR}/bin/moc
then then
MOC=${QTDIR}/bin/moc MOC=${QTDIR}/bin/moc
else else
MOC=moc MOC=moc
fi fi
fi
fi]) fi])
dnl dnl
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment