X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=autoconf%2Fpecl%2Fpecl.m4;fp=autoconf%2Fpecl%2Fpecl.m4;h=6721e1c1455f68bf2d01c0bb0c173792aaa72f7e;hp=e6cd7921d35b367c69d24de21cc479468c7980f4;hb=f486a14465656df4544ca84a3e0e2730132cce93;hpb=6e3f44633dc28ec4fe5578c5ae7ccd24bffa4908 diff --git a/autoconf/pecl/pecl.m4 b/autoconf/pecl/pecl.m4 index e6cd792..6721e1c 100644 --- a/autoconf/pecl/pecl.m4 +++ b/autoconf/pecl/pecl.m4 @@ -184,6 +184,7 @@ AC_DEFUN([PECL_HAVE_CONST], [dnl #include "$1" ], [ ]ifelse([$3],,int,[$3])[ _c = $2; + (void) _c; ], [ PECL_CACHE_VAR([HAVE_$1_$2])=yes ], [ @@ -253,7 +254,8 @@ AC_DEFUN([PECL_CHECK_CUSTOM], [ CPPFLAGS="-I$PECL_CACHE_VAR([$1_prefix])/include" LDFLAGS="-L$PECL_CACHE_VAR([$1_prefix])/$PHP_LIBDIR" LIBS="-l$4" - + PHP_EVAL_LIBLINE([$LDFLAGS $LIBS]) + AC_CACHE_VAL(PECL_CACHE_VAR([$1_version]), [ pushd $PECL_CACHE_VAR([$1_prefix]) >/dev/null PECL_CACHE_VAR([$1_version])=$5 @@ -309,6 +311,8 @@ AC_DEFUN([PECL_CHECK_CONFIG], [ PECL_CACHE_VAR([$1_libs])=$($2 $6) ]) LIBS=$PECL_CACHE_VAR([$1_libs]) + + PHP_EVAL_LIBLINE([$LDFLAGS $LIBS]) ifelse($2, [$PKG_CONFIG $1], [ fi ])