This was the fix required for APR_TRY_COMPILE_NO_WARNING... likely a
function you started calling needs a similar fix, which restored the
environment in time for the action-if-true / action-if-false to both behave
without an unusual environment.

--- apr/apr/branches/1.7.x/build/apr_common.m4 (original)
+++ apr/apr/branches/1.7.x/build/apr_common.m4 Tue Mar 19 15:26:46 2019
@@ -511,9 +511,9 @@ AC_DEFUN([APR_TRY_COMPILE_NO_WARNING],
    [int main(int argc, const char *const *argv) {]
    [[$2]]
    [   return 0; }]
-  )],
-  [$3], [$4])
- CFLAGS=$apr_save_CFLAGS
+  )], [CFLAGS=$apr_save_CFLAGS
+$3],  [CFLAGS=$apr_save_CFLAGS
+$4])
 ])

 dnl

On Fri, Mar 22, 2019 at 11:49 AM Yann Ylavic <ylavic....@gmail.com> wrote:

> On Fri, Mar 22, 2019 at 4:28 PM William A Rowe Jr <wr...@rowe-clan.net>
> wrote:
> > +checking whether int64_t and int use fmt %d... checking whether int64_t
> and long use fmt %ld... yes
> > +no
>
> "yes" for %ld and "no" for %d, in stack order?
>
> Possibly it would print better with:
>
> Index: build/apr_common.m4
> ===================================================================
> --- build/apr_common.m4    (revision 1856042)
> +++ build/apr_common.m4    (working copy)
> @@ -995,9 +995,9 @@ APR_TRY_COMPILE_NO_WARNING([#include <sys/types.h>
>      ptr1 = &chk2;
>      *ptr1 = *ptr2 = 0;
>      printf("%$3 %$3", chk1, chk2);
> -], [apr_cvname=yes
> -$4], [apr_cvname=no
> -$5])])
> +], [$4
> +apr_cvname=yes], [$5
> +apr_cvname=no])])
>  ])
>
>  dnl
> --
>

Reply via email to