Tidier output in configure when php is not found
This commit is contained in:
parent
1efcdd8c56
commit
c766bf334a
1 changed files with 48 additions and 44 deletions
|
|
@ -1950,6 +1950,7 @@ else
|
||||||
PHP5=$PHP5BIN
|
PHP5=$PHP5BIN
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if test -n "$PHP5"; then
|
||||||
AC_MSG_CHECKING(for PHP5 header files)
|
AC_MSG_CHECKING(for PHP5 header files)
|
||||||
dnl /usr/bin/php5 -> /usr/bin/php-config5
|
dnl /usr/bin/php5 -> /usr/bin/php-config5
|
||||||
case $PHP5 in
|
case $PHP5 in
|
||||||
|
|
@ -1973,6 +1974,7 @@ else
|
||||||
*)
|
*)
|
||||||
AC_MSG_RESULT([found PHP $php_version - not PHP 5]) ;;
|
AC_MSG_RESULT([found PHP $php_version - not PHP 5]) ;;
|
||||||
esac
|
esac
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
AC_SUBST(PHP5)
|
AC_SUBST(PHP5)
|
||||||
AC_SUBST(PHP5INC)
|
AC_SUBST(PHP5INC)
|
||||||
|
|
@ -1997,6 +1999,7 @@ else
|
||||||
PHP=$PHPBIN
|
PHP=$PHPBIN
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if test -n "$PHP"; then
|
||||||
AC_MSG_CHECKING(for PHP header files)
|
AC_MSG_CHECKING(for PHP header files)
|
||||||
dnl /usr/bin/php7.0 -> /usr/bin/php-config7.0
|
dnl /usr/bin/php7.0 -> /usr/bin/php-config7.0
|
||||||
case $PHP in
|
case $PHP in
|
||||||
|
|
@ -2020,6 +2023,7 @@ else
|
||||||
*)
|
*)
|
||||||
AC_MSG_RESULT([found PHP $php_version - not PHP 7]) ;;
|
AC_MSG_RESULT([found PHP $php_version - not PHP 7]) ;;
|
||||||
esac
|
esac
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
AC_SUBST(PHP)
|
AC_SUBST(PHP)
|
||||||
AC_SUBST(PHPINC)
|
AC_SUBST(PHPINC)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue