From 51cf7473e5f18cc62d0aec64d468d20b68b92452 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Thu, 12 Mar 2009 14:47:55 +0000 Subject: detect NetworkManager using pkg-config svn path=/trunk/; revision=8873 --- configure.ac | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index fd9f0b471..3d825d5ca 100644 --- a/configure.ac +++ b/configure.ac @@ -419,8 +419,7 @@ AC_ARG_ENABLE([network-manager], AC_MSG_RESULT([$enable_network_manager]) if test "$enable_network_manager" != "no"; then - AC_CHECK_HEADERS([NetworkManager/NetworkManager.h], - [have_network_manager=yes],[have_network_manager=no]) + PKG_CHECK_MODULES(NETWORK_MANAGER, NetworkManager, [have_network_manager=yes],[have_network_manager=no]) if test "$enable_network_manager" = "yes" -a "$have_network_manager" = "no"; then AC_MSG_ERROR([NetworkManager support requested but NetworkManager headers not found]) -- cgit