Adjust roken.m4 to allow separate lib and include
authorBenjamin Kaduk <kaduk@mit.edu>
Mon, 22 Sep 2014 19:27:44 +0000 (15:27 -0400)
committerD Brashear <shadow@your-file-system.com>
Wed, 8 Oct 2014 14:51:59 +0000 (10:51 -0400)
commit9e3596c3fae6912783ec6d714a37f3dc05f8925c
treead9215bade35fc27e43f21d57d8a4bbf9743de6a
parentbd5c12995e6de74d36bd2205f7268a0f32029b7f
Adjust roken.m4 to allow separate lib and include

In some installations (e.g., Debian), the roken libraries and headers
will not be installed in a common root directory to which /lib and
/include may be appended to find the appropriate library and header
directories, respectively.

Take inspiration from rra-c-util's GSSAPI macros and allow the
specification of separate include and lib directories.  Since there
are now three values to pass to the guts of the checking routine,
pass them in global variables instead of as parameters.

The expected usage would be to set either --with-roken, or both of
--with-roken-libdir and --with-roken-includedir, as in
configure --with-roken-include=/usr/include/heimdal
--with-roken-lib=/usr/lib/x86_64-linux-gnu/heimdal

This also fixes a typo that prevented --with-roken=internal from
functioning as intended.

Change-Id: I6f651ef3f3abf37c92ea81ea1801294ca3dc00b2
Reviewed-on: http://gerrit.openafs.org/11473
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Reviewed-by: D Brashear <shadow@your-file-system.com>
Tested-by: D Brashear <shadow@your-file-system.com>
src/cf/roken.m4