mirror of
https://github.com/php/php-src.git
synced 2024-09-23 10:57:26 +00:00
Replace AC_CHECK_FILE with test -f
The AC_CHECK_FILE macro is designed to emit a warning about possible cross compiling issues if file is not present on the target system. Since the generated PHP lexer file is part of the build files and not target system this can be simplified by a usual shell check with `test -f` instead as in other usages.
This commit is contained in:
parent
dcad13e8c9
commit
72087c8921
@ -2097,10 +2097,11 @@ AC_DEFUN([PHP_PROG_RE2C],[
|
||||
fi
|
||||
case $php_cv_re2c_version in
|
||||
""|invalid[)]
|
||||
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.])]
|
||||
)
|
||||
if test -f "$abs_srcdir/Zend/zend_language_scanner.c"; then
|
||||
AC_MSG_WARN([You will need re2c 0.13.4 or later if you want to regenerate PHP lexers.])
|
||||
else
|
||||
AC_MSG_ERROR([You will need re2c 0.13.4 or later to generate PHP lexers.])
|
||||
fi
|
||||
|
||||
RE2C="exit 0;"
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user