From: Maxim Koltsov Date: Mon, 8 Nov 2010 15:08:01 +0000 (+0000) Subject: build: Add ./configure --disable-php option. X-Git-Tag: 1.7.3~3 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=b0a48fa4504f85baa484987f54d8f99703e3ed3b;p=libguestfs.git build: Add ./configure --disable-php option. This disables the PHP language bindings. --- diff --git a/configure.ac b/configure.ac index db2eb02..9cfb000 100644 --- a/configure.ac +++ b/configure.ac @@ -776,6 +776,20 @@ AS_IF([test "x$enable_haskell" != "xno"], AM_CONDITIONAL([HAVE_HASKELL], [test "x$GHC" != "xno"]) +dnl PHP +PHP=no +AC_ARG_ENABLE([php], + AS_HELP_STRING([--disable-php], [Disable PHP language bindings]), + [], + [enable_php=yes]) +AS_IF([test "x$enable_php" != "xno"], + [ + PHP= + AC_CHECK_PROG([PHP],[php],[php],[no]) + AC_CHECK_PROG([PHPIZE],[phpize],[phpize],[no]) + ]) +AM_CONDITIONAL([HAVE_PHP], [test "x$PHP" != "xno" && test "x$PHPIZE" != "xno"]) + dnl Check for Perl modules needed by virt-df, inspector, etc. AS_IF([test "x$PERL" != "xno"], [ @@ -803,11 +817,6 @@ dnl po4a for translating man pages and POD files (optional). AC_CHECK_PROG([PO4A],[po4a],[po4a],[no]) AM_CONDITIONAL([HAVE_PO4A], [test "x$PO4A" != "xno"]) -dnl PHP -AC_CHECK_PROG([PHP],[php],[php],[no]) -AC_CHECK_PROG([PHPIZE],[phpize],[phpize],[no]) -AM_CONDITIONAL([HAVE_PHP], [test "x$PHP" != "xno" && test "x$PHPIZE" != "xno"]) - dnl Library versioning. MAX_PROC_NR=`cat $srcdir/src/MAX_PROC_NR` AC_SUBST(MAX_PROC_NR)