diff options
| author | Nikita Popov <nikita.ppv@gmail.com> | 2020-07-29 12:45:26 +0200 |
|---|---|---|
| committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-07-29 15:07:53 +0200 |
| commit | e2f39f84e2366bb9aee16fe248aad893c0aa6380 (patch) | |
| tree | 5b304a34e1aba5b29944ee990255589bdc5c7dff /build | |
| parent | 3a29da022b80c8468ea0f14402b23d716cb37775 (diff) | |
| download | php-git-e2f39f84e2366bb9aee16fe248aad893c0aa6380.tar.gz | |
Remove PHP_CHECK_GCC_ARG()
In favor of AX_CHECK_COMPILE_FLAG(), which we bundle since at least
PHP 7.
Closes GH-5904.
Diffstat (limited to 'build')
| -rw-r--r-- | build/php.m4 | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/build/php.m4 b/build/php.m4 index a5b18c15aa..bdc02573ac 100644 --- a/build/php.m4 +++ b/build/php.m4 @@ -305,30 +305,6 @@ fi ]) dnl -dnl PHP_CHECK_GCC_ARG(arg, action-if-found, action-if-not-found) -dnl -AC_DEFUN([PHP_CHECK_GCC_ARG],[ - gcc_arg_name=[ac_cv_gcc_arg]translit($1,A-Z=-,a-z__) - AC_CACHE_CHECK([whether $CC supports $1], [ac_cv_gcc_arg]translit($1,A-Z=-,a-z__), [ - echo 'void somefunc() { };' > conftest.c - cmd='$CC $1 -c conftest.c' - if eval $cmd 2>&1 | $EGREP -e $1 >/dev/null ; then - ac_result=no - else - ac_result=yes - fi - eval $gcc_arg_name=$ac_result - rm -f conftest.* - ]) - if eval test "\$$gcc_arg_name" = "yes"; then - $2 - else - : - $3 - fi -]) - -dnl dnl PHP_LIBGCC_LIBPATH(gcc) dnl dnl Stores the location of libgcc in libgcc_libpath. |
