From: Thomas Petazzoni Date: Thu, 3 Nov 2011 12:00:19 +0000 (-0400) Subject: configure.ac: add check for popt library X-Git-Tag: v0.8~14 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=0f536a744282fe3a21f8d7bb4ee5ee1325ea2fe4 configure.ac: add check for popt library The popt library is used by babeltrace but isn't checked in configure.ac, so the compilation fails due to popt.h being missing if popt is not already installed on the system. Signed-off-by: Thomas Petazzoni Signed-off-by: Mathieu Desnoyers --- diff --git a/configure.ac b/configure.ac index f8a80e5f..4446f290 100644 --- a/configure.ac +++ b/configure.ac @@ -40,6 +40,10 @@ AC_CHECK_LIB([uuid], [uuid_generate], [], [AC_MSG_ERROR([Cannot find libuuid. Use [LDFLAGS]=-Ldir to specify its location.])] ) +AC_CHECK_LIB([popt], [poptGetContext], [], + [AC_MSG_ERROR([Cannot find popt.])] +) + pkg_modules="gmodule-2.0 >= 2.0.0" PKG_CHECK_MODULES(GMODULE, [$pkg_modules]) AC_SUBST(PACKAGE_LIBS)