diff options
author | Jan Borsodi <amos@php.net> | 2000-11-15 18:55:00 +0000 |
---|---|---|
committer | Jan Borsodi <amos@php.net> | 2000-11-15 18:55:00 +0000 |
commit | 471bcfc8c85a5053cdb0a55bf46e0512ba095381 (patch) | |
tree | 212f4464ea9f3ea86ed1e8166dd6e6ad1e02cb25 /ext/qtdom | |
parent | 14350f9aefe778bb7d58138a39ba67aa308f432a (diff) | |
download | php-git-471bcfc8c85a5053cdb0a55bf46e0512ba095381.tar.gz |
Autoconf configure script for qt dom, needs some more checking in the future.
Diffstat (limited to 'ext/qtdom')
-rw-r--r-- | ext/qtdom/config.m4 | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/ext/qtdom/config.m4 b/ext/qtdom/config.m4 new file mode 100644 index 0000000000..8ca444b1f5 --- /dev/null +++ b/ext/qtdom/config.m4 @@ -0,0 +1,23 @@ +dnl $Id$ +dnl config.m4 for extension qtdom +dnl don't forget to call PHP_EXTENSION(qtdom) + +AC_MSG_CHECKING(whether to include QDOM support) +AC_ARG_WITH(qtdom, +[ --with-qtdom Include QtDOM support (requires Qt >= 2.2.0).], +[ +case "$withval" in + no) + AC_MSG_RESULT(no) ;; + yes) + AC_MSG_RESULT(yes) + AC_ADD_LIBRARY_WITH_PATH(qt, $QTDIR/lib) + AC_ADD_INCLUDE($QTDIR/include) + AC_DEFINE(HAVE_QTDOM, 1, [Wheter you have qtdom]) + PHP_EXTENSION(qtdom, $ext_shared) + PHP_REQUIRE_CXX + ;; + esac +],[ + AC_MSG_RESULT(no) +]) |