aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/modules/FindNL.cmake
AgeCommit message (Collapse)AuthorFilesLines
2016-09-12cmake: fix breakage with libnl2Peter Wu1-5/+1
I accidentally assumed that libnl2 works fine with just libnl.so, but apparently the other libraries are also necessary. Change-Id: I1636710ea3f41ed10a5ccb37106cae9e688abec9 Reviewed-on: https://code.wireshark.org/review/17654 Reviewed-by: Michal Labedzki <michal.labedzki@tieto.com> Petri-Dish: Michal Labedzki <michal.labedzki@tieto.com> Tested-by: Michal Labedzki <michal.labedzki@tieto.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2016-09-03cmake: fix libnl caching issue, make it more robustPeter Wu1-38/+55
Dario reported that the cmake build fails after installing libnl3-devel (libnl-devel was already present). This results from a name collision for NL_LIBRARY and NL_INCLUDE_DIR variables. Initially these variables contained the values for libnl-1. When libnl3 is installed, these variables were not updated (because it was cached), but HAVE_LIBNL3 would still be set, resulting in a header and feature mismatch. Use separate variables for libnl1 and libnl3 to fix this. Other fixes: also set HAVE_LIBNL for libnl1; fallback to libnl1 if libnl3 is unusable (e.g. because libnl-route-3.0 is missing). Change-Id: Icf0a03843ea870347ddf365f69bacf4883d07f6d Reviewed-on: https://code.wireshark.org/review/17449 Petri-Dish: Peter Wu <peter@lekensteyn.nl> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Dario Lombardo <lomato@gmail.com> Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2014-10-01cmake: use pkg-config for resolving dependenciesPeter Wu1-0/+22
Changes: * Fix glib2 search path. * Add pkg-config support to CAP, GEOIP, GNUTLS, LUA, PortAudio (API 19), zlib, kerberos. * Add pkg-config support to libnl3, libnl2 and libnl1 (but tested only with libnl3). This makes it easier to do 32-bit builds on 64-bit hosts by just setting `PKG_CONFIG_LIBDIR`. Due to how HINTS work, it is still fragile though: missing 32-bit libraries will cause a fallback to 64-bit libraries. A future patch could check for `<PREFIX>_FOUND` and remove the manual `find_path` and `find_library` hackery since the paths are already known. Change-Id: Ieb4fb74695c96afb1a4c70168e84abb1fa4612c6 Reviewed-on: https://code.wireshark.org/review/4292 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-03-31Continue to remove $Id$ from top of fileAlexis La Goutte1-2/+0
(Using sed : sed -i '/^\# \$Id\$/,+1 d') (start with dash) Change-Id: Ia4b5a6c2302f6a531f6a86c1ec3a2f8205c8c2dd Reviewed-on: https://code.wireshark.org/review/881 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2013-04-04If we somehow manage to find libnl version 2 or 3, but don't manage toGuy Harris1-7/+16
find the corresponding libnl-genl or libnl-route libraries, act as if we didn't find libnl. If we didn't find libnl version 2 or 3, don't check whether it's version 2 or 3. svn path=/trunk/; revision=48742
2012-11-22Don't set HAVE_LIBNL1 if we have don't libnl at all.Guy Harris1-1/+3
svn path=/trunk/; revision=46146
2012-09-11Differentiate between libnl versions. Feature parity with autofooJörg Mayer1-34/+57
for libnl. svn path=/trunk/; revision=44876
2012-09-10Only check if the NL-stuff isn't in the caches alreadyJörg Mayer1-38/+45
svn path=/trunk/; revision=44838
2012-09-06Get netlink detection working with cmake (not complete)Jörg Mayer1-33/+53
svn path=/trunk/; revision=44791
2012-06-20Complete cmake support for netlink detectionJörg Mayer1-0/+50
svn path=/trunk/; revision=43421