]> granicus.if.org Git - pdns/commitdiff
Append to PKG_CONFIG only after calling PKG_PROG_PKG_CONFIG
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Tue, 13 Jan 2015 12:31:01 +0000 (13:31 +0100)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Tue, 13 Jan 2015 12:35:23 +0000 (13:35 +0100)
Otherwise PKG_CONFIG is not set yet.

configure.ac

index 7f05c0af4dbd9ea9c6b9ceb65c9c713948388d1f..98017fd06230962fd4efefd31570f4da9611ecfc 100644 (file)
@@ -60,6 +60,9 @@ AM_CONDITIONAL([RELEASE_BUILD], [test "$PACKAGE_VERSION" != "git"])
 # We use this to search for other libraries.
 eval full_libdir="\"$libdir\""
 
+# detect pkg-config explicitly
+PKG_PROG_PKG_CONFIG
+
 # check if we want a static build
 AC_MSG_CHECKING([whether we will be building static binaries])
 
@@ -74,9 +77,6 @@ AS_IF([test "x$static" != "xno"], [
   PKG_CONFIG="$PKG_CONFIG --static"
 ])
 
-# detect pkg-config explicitly
-PKG_PROG_PKG_CONFIG
-
 AC_CHECK_HEADERS(
        [sys/mman.h],
        [AC_CHECK_FUNC(