Bug 56053

Summary: APR_CHECK_SIZEOF_EXTENDED should be replaced by AC_CHECK_SIZEOF
Product: APR Reporter: Mike Frysinger <vapier>
Component: APRAssignee: Apache Portable Runtime bugs mailinglist <bugs>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: P2    
Version: HEAD   
Target Milestone: ---   
Hardware: All   
OS: All   
Attachments: apr-delete-APR_CHECK_SIZEOF_EXTENDED.patch

Description Mike Frysinger 2014-01-22 22:26:54 UTC
Created attachment 31249 [details]
apr-delete-APR_CHECK_SIZEOF_EXTENDED.patch

APR_CHECK_SIZEOF_EXTENDED was written to work around deficiencies in old versions of AC_CHECK_SIZEOF.  autoconf has since improved significantly.  looks like the release is using autoconf-2.69, so it shouldn't be a big problem to update things.

specifically, AC_CHECK_SIZEOF supports non-native types (ones that are defined in headers and not the compiler itself), and it supports detecting the size even when cross-compiling.

the attached patch against trunk should do the trick.
Comment 1 Graham Leggett 2019-12-26 02:00:39 UTC
Added to trunk in r 1871980.

Backported to apr v1.7 in r 1871981.