dnl $Id: config.m4,v 1.6 2001/11/27 20:17:48 andrei Exp $ dnl config.m4 for extension php-gtk PHP_ARG_ENABLE(php-gtk,for PHP-GTK support, [ PHP-GTK Options ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --enable-php-gtk Enable PHP-GTK support]) if test "$PHP_PHP_GTK" != "no"; then AC_PROG_AWK PHP_SUBST(AWK) PHP_PREFIX=`php-config --prefix` AC_MSG_CHECKING(for PHP executable in $PHP_PREFIX/bin) if test -x $PHP_PREFIX/bin/php; then PHP=$PHP_PREFIX/bin/php AC_MSG_RESULT(found) else AC_MSG_ERROR(Could not locate PHP executable) fi PHP_SUBST(PHP) sinclude(php_gtk.m4) BSD_MAKEFILE=no case $host_alias in *bsdi*) BSD_MAKEFILE=yes;; esac # reading config stubs esyscmd(./build2/config-stubs ext) INCLUDES="$INCLUDES -I\$(top_srcdir)/main" PHP_EXTENSION(php-gtk, $ext_shared) AC_DEFINE(HAVE_PHP_GTK, 1, [If PHP-GTK support is enabled]) PHP_FAST_OUTPUT(main/Makefile ext/Makefile) fi