mirror of
https://github.com/php/php-src.git
synced 2026-04-26 09:28:21 +02:00
Add re2c checking with error exit code
To make installation experience better instead of only outputting warning when re2c is not present this patch also exits if the PHP lexer file(s) were not generated yet and re2c is not present on the system.
This commit is contained in:
+5
-1
@@ -2097,7 +2097,11 @@ AC_DEFUN([PHP_PROG_RE2C],[
|
||||
fi
|
||||
case $php_cv_re2c_version in
|
||||
""|invalid[)]
|
||||
AC_MSG_WARN([You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.])
|
||||
AC_CHECK_FILE([$abs_srcdir/Zend/zend_language_scanner.c],
|
||||
[AC_MSG_WARN([You will need re2c 0.13.4 or later if you want to regenerate PHP lexers.])],
|
||||
[AC_MSG_ERROR([You will need re2c 0.13.4 or later to generate PHP lexers.])]
|
||||
)
|
||||
|
||||
RE2C="exit 0;"
|
||||
;;
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user