diff --git a/configure.ac b/configure.ac index cd58b7f..6b7e09a 100644 --- a/configure.ac +++ b/configure.ac @@ -396,12 +396,23 @@ AC_SEARCH_LIBS([dlopen], [dl], AC_DEFINE(HAVE_LIBDL), AC_MSG_NOTICE([libdl not p AC_ARG_WITH([php-config], [AS_HELP_STRING([--with-php-config], [Path to php-config tool])], [ PHPCONFIG="$withval" ],[ AC_PATH_TOOL(PHPCONFIG, php-config, , $PATH) ]) -if test -z "${PHPCONFIG}"; then - AC_MSG_NOTICE([Program php-config not found. Use --with-php-config=path to specify absolute path to the php-config tool.]) -else - AC_DEFINE(HAVE_PHP) - EXTENSIONS="$EXTENSIONS php" -fi +case "$host" in + *-mingw32) + AC_MSG_NOTICE([PHP disabled on windows platforms.]) + ;; + + *-apple-*) + AC_MSG_NOTICE([PHP disabled on apple platforms.]) + ;; + + *) + if test -z "${PHPCONFIG}"; then + AC_MSG_NOTICE([Program php-config not found. Use --with-php-config=path to specify absolute path to the php-config tool.]) + else + AC_DEFINE(HAVE_PHP) + EXTENSIONS="$EXTENSIONS php" + fi +esac AC_SUBST(PHPCONFIG) -- libgit2 0.21.2