Bug 56053 - APR_CHECK_SIZEOF_EXTENDED should be replaced by AC_CHECK_SIZEOF
Summary: APR_CHECK_SIZEOF_EXTENDED should be replaced by AC_CHECK_SIZEOF
Status: RESOLVED FIXED
Alias: None
Product: APR
Classification: Unclassified
Component: APR (show other bugs)
Version: HEAD
Hardware: All All
: P2 enhancement (vote)
Target Milestone: ---
Assignee: Apache Portable Runtime bugs mailinglist
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-22 22:26 UTC by Mike Frysinger
Modified: 2019-12-26 02:00 UTC (History)
0 users



Attachments
apr-delete-APR_CHECK_SIZEOF_EXTENDED.patch (3.15 KB, patch)
2014-01-22 22:26 UTC, Mike Frysinger
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.