From: Maxim Koltsov Date: Mon, 8 Nov 2010 15:08:01 +0000 (+0000) Subject: build: Add ./configure --disable-php option. X-Git-Tag: 1.6.2~39 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=15b2d9c63894d0751ad7187149b4bbfa0a0b3f91;p=libguestfs.git build: Add ./configure --disable-php option. This disables the PHP language bindings. (cherry picked from commit b0a48fa4504f85baa484987f54d8f99703e3ed3b) --- diff --git a/configure.ac b/configure.ac index a170f28..c75e3aa 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)