roken: Check for bswap16 and bswap32 defines
authorSimon Wilkinson <sxw@your-file-system.com>
Mon, 3 Jan 2011 10:47:30 +0000 (10:47 +0000)
committerDerrick Brashear <shadow@dementia.org>
Mon, 3 Jan 2011 14:38:42 +0000 (06:38 -0800)
commitbf163cbebfec97b83c070d22fed1eabf7a2da629
treef1f6f599aa8993b97bcc04ffa7c4c753f2f74e4f
parent735f5b051521d047b18bef867042f59dc006098e
roken: Check for bswap16 and bswap32 defines

Our imported roken.h provides definitions for bswap16 and bswap32,
but configure doesn't check to see if those functions already exist.
On operating systems where they do, and where the header containing
them is included in our build, this results in compilation errors.

Add a configure test for bswap16 and bswap32, which is complicated
by the fact that they may be macros, or static inline functions, so
a simple CHECK_FUNCS won't work.

Change-Id: Iae3411bf4bb22af8cfd770e01026a28e1863e078
Reviewed-on: http://gerrit.openafs.org/3613
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
acinclude.m4