Arvind Sankar f040a7b0f8 Fix up FIND_SYSTEM_LIBRARY to work with cross-compiling
Make FIND_SYSTEM_LIBRARY respect a configured sysroot, otherwise it
might find headers from the build machine and assume the library is
available on the host/target.

Tighten up error checking: if pkg-config or the user specified _CFLAGS
or _LIBS but we can't find the header/library, issue a fatal error.

Fix the -L flag to /usr/local/lib instead of just /usr/local.

Clean out the _CFLAGS and _LIBS if we located something that we later
find doesn't work.

Rename FIND_SYSTEM_LIBRARY into the ZFS_AC_ scope.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu>
Closes #10538
2020-07-10 14:26:40 -07:00
..
2020-04-14 11:36:28 -07:00
2019-06-13 13:15:46 -07:00
2019-06-13 13:15:46 -07:00
2020-06-24 18:19:59 -07:00
2018-05-01 10:33:35 -07:00
2019-07-09 09:28:05 -07:00
2020-02-28 08:58:39 -08:00
2020-06-08 16:32:02 -07:00
2020-06-09 21:24:09 -07:00
2019-10-01 12:50:34 -07:00
2019-10-01 12:50:34 -07:00
2019-08-30 09:40:30 -07:00
2018-05-29 14:51:39 -07:00
2020-06-24 18:19:28 -07:00
2018-05-29 14:51:39 -07:00
2018-11-11 18:06:36 -08:00
2020-07-10 14:26:00 -07:00
2020-07-01 09:05:21 -07:00
2019-10-01 12:50:34 -07:00