Improve libroken configure check
authorAndrew Deason <adeason@sinenomine.net>
Thu, 17 Jan 2013 21:37:06 +0000 (15:37 -0600)
committerDerrick Brashear <shadow@your-file-system.com>
Mon, 21 Jan 2013 13:32:08 +0000 (05:32 -0800)
commitd72d0f4a81764d0cfc0f145185bbaa91b52873b2
tree642af9423aca819052727553040bc89402b3fd2c
parent09c0484fd8878797957f7ff5936c542a0f6332c4
Improve libroken configure check

It is not sufficient to just check if libroken is available; we need
to check if the specific functionality we want is there. So, try to
compile and link while referencing specific functions.

As mentioned in the comments, testing every single function we use may
not be practical, and we should perhaps just add functions to test as
we find breakage. This commit tests rk_rename, which is missing in at
least the Debian package heimdal-dev, version
1.4.0~git20100726.dfsg.1-2+squeeze1.

Change-Id: I0ac6c9aea1f8598bb1b1315544683b2403de5f69
Reviewed-on: http://gerrit.openafs.org/8916
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
src/cf/roken.m4