On Fri, Mar 22, 2019 at 6:31 PM William A Rowe Jr <[email protected]> wrote:
>
> 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.
I don't think so, if you change the off_t case you wrote like the
below, you'll probably see the same yes..no sequence :
Index: configure.in
===================================================================
--- configure.in (revision 1856063)
+++ configure.in (working copy)
@@ -1878,14 +1878,14 @@ elif test "$ac_cv_type_off_t" = "yes"; then
# where int and long are the same size and interchangable.
off_t_value=off_t
off_t_size="$ac_cv_sizeof_off_t"
+ APR_CHECK_TYPES_FMT_COMPATIBLE(off_t, int, d, [
+ off_t_fmt="#define APR_OFF_T_FMT \"d\""
+ off_t_strfn='strtoi'
+ ], [
APR_CHECK_TYPES_FMT_COMPATIBLE(off_t, long, ld, [
off_t_fmt="#define APR_OFF_T_FMT \"ld\""
off_t_strfn='strtol'
], [
- APR_CHECK_TYPES_FMT_COMPATIBLE(off_t, int, d, [
- off_t_fmt="#define APR_OFF_T_FMT \"d\""
- off_t_strfn='strtoi'
- ], [
APR_CHECK_TYPES_FMT_COMPATIBLE(off_t, long long, lld, [
off_t_fmt="#define APR_OFF_T_FMT \"lld\""
off_t_strfn='strtoll'
--