summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6fb104a)
raw | patch | inline | side by side (parent: 6fb104a)
author | Marc Fournier <marc.fournier@camptocamp.com> | |
Wed, 7 Aug 2013 05:55:01 +0000 (07:55 +0200) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Wed, 7 Aug 2013 05:56:18 +0000 (07:56 +0200) |
configure.in | patch | blob | history |
diff --git a/configure.in b/configure.in
index bcfb0564bd26ce79792558caa6e807b7129425c8..c98e3c3a8b7aef1e550c0c93a6e1a17678a2436d 100644 (file)
--- a/configure.in
+++ b/configure.in
# --with-libmnl {{{
with_libmnl_cflags=""
-with_libmnl_libs="-lmnl"
+with_libmnl_libs=""
AC_ARG_WITH(libmnl, [AS_HELP_STRING([--with-libmnl@<:@=PREFIX@:>@], [Path to libmnl.])],
[
echo "libmnl: withval = $withval"
@@ -2532,9 +2532,16 @@ AC_ARG_WITH(libmnl, [AS_HELP_STRING([--with-libmnl@<:@=PREFIX@:>@], [Path to lib
with_libmnl="no (Linux only library)"
fi
])
+if test "x$PKG_CONFIG" = "x"
+then
+ with_libmnl="no (Don't have pkg-config)"
+fi
if test "x$with_libmnl" = "xyes"
then
- with_libmnl="no (libmnl.h not found)"
+ if $PKG_CONFIG --exists libmnl 2>/dev/null; then
+ with_libmnl_cflags="$with_libmnl_ldflags `$PKG_CONFIG --cflags libmnl`"
+ with_libmnl_libs="$with_libmnl_libs `$PKG_CONFIG --libs libmnl`"
+ fi
AC_CHECK_HEADERS(libmnl.h libmnl/libmnl.h,
[