Invoke PKG_PROG_PKG_CONFIG early in configure.ac
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Mon, 13 Feb 2012 17:58:29 +0000 (17:58 +0000)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Tue, 21 Feb 2012 14:51:11 +0000 (14:51 +0000)
Otherwise, autoconf can generate wrong code, because our first use of
PKG_CHECK_MODULES is conditional.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=46095
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
configure.ac

index 7bd4ddf..dd9f1f5 100644 (file)
@@ -68,6 +68,7 @@ AM_PROG_LIBTOOL
 AC_PROG_MKDIR_P
 COMPILER_COVERAGE
 COMPILER_OPTIMISATIONS
+PKG_PROG_PKG_CONFIG
 
 # Initialize libtool
 LT_INIT([win32-dll])