2001-12-01 03:00:13 +08:00
|
|
|
dnl
|
2000-11-16 02:55:00 +08:00
|
|
|
dnl $Id$
|
2001-12-01 03:00:13 +08:00
|
|
|
dnl
|
2000-11-16 02:55:00 +08:00
|
|
|
|
|
|
|
AC_MSG_CHECKING(whether to include QDOM support)
|
|
|
|
AC_ARG_WITH(qtdom,
|
2000-12-07 01:34:58 +08:00
|
|
|
[ --with-qtdom Include QtDOM support (requires Qt >= 2.2.0).],
|
2000-11-16 02:55:00 +08:00
|
|
|
[
|
2001-05-12 19:09:05 +08:00
|
|
|
case $withval in
|
2000-11-16 02:55:00 +08:00
|
|
|
no)
|
|
|
|
AC_MSG_RESULT(no) ;;
|
|
|
|
yes)
|
2001-03-21 03:19:31 +08:00
|
|
|
if test -f $QTDIR/include/qdom.h; then
|
|
|
|
AC_MSG_RESULT(yes)
|
2001-03-28 04:35:04 +08:00
|
|
|
PHP_ADD_LIBRARY_WITH_PATH(qt, $QTDIR/lib)
|
|
|
|
PHP_ADD_INCLUDE($QTDIR/include)
|
2001-03-21 03:19:31 +08:00
|
|
|
AC_DEFINE(HAVE_QTDOM, 1, [Wheter you have qtdom])
|
2002-03-13 00:44:00 +08:00
|
|
|
PHP_NEW_EXTENSION(qtdom, qtdom_qt.cpp, $ext_shared)
|
2001-03-21 03:19:31 +08:00
|
|
|
PHP_REQUIRE_CXX
|
|
|
|
elif test -f /usr/lib/qt2/include/qdom.h; then
|
|
|
|
AC_MSG_RESULT(yes)
|
2001-03-28 04:35:04 +08:00
|
|
|
PHP_ADD_LIBRARY(qt)
|
|
|
|
PHP_ADD_INCLUDE(/usr/lib/qt2/include)
|
2001-03-21 03:19:31 +08:00
|
|
|
AC_DEFINE(HAVE_QTDOM, 1, [Wheter you have qtdom])
|
2002-03-13 00:44:00 +08:00
|
|
|
PHP_NEW_EXTENSION(qtdom, qtdom_qt.cpp, $ext_shared)
|
2001-03-21 03:19:31 +08:00
|
|
|
PHP_REQUIRE_CXX
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
2000-11-16 02:55:00 +08:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
],[
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
])
|